summaryrefslogtreecommitdiff
path: root/fs/exfat/exfat_fs.h
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2023-02-18 02:44:25 +0300
committerDarrick J. Wong <djwong@kernel.org>2023-02-27 19:53:45 +0300
commit6e2985c938e8b765b3de299c561d87f98330c546 (patch)
tree9021657304f19e0a01c07bb32a7d3c9bcaf6c5cf /fs/exfat/exfat_fs.h
parent60b730a40c43fbcc034970d3e77eb0f25b8cc1cf (diff)
downloadlinux-6e2985c938e8b765b3de299c561d87f98330c546.tar.xz
xfs: restore old agirotor behavior
Prior to the removal of xfs_ialloc_next_ag, we would increment the agi rotor and return the *old* value. atomic_inc_return returns the new value, which causes mkfs to allocate the root directory in AG 1. Put back the old behavior (at least for mkfs) by subtracting 1 here. Fixes: 20a5eab49d35 ("xfs: convert xfs_ialloc_next_ag() to an atomic") Signed-off-by: Darrick J. Wong <djwong@kernel.org> Reviewed-by: Dave Chinner <dchinner@redhat.com>
Diffstat (limited to 'fs/exfat/exfat_fs.h')
0 files changed, 0 insertions, 0 deletions