Home
last modified time | relevance | path

Searched hist:"6 e2985c9" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/fs/xfs/libxfs/
H A Dxfs_ialloc.c6e2985c9 Fri Feb 17 17:44:25 CST 2023 Darrick J. Wong <djwong@kernel.org> 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>