Darrick J. Wong 6e2985c938 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>
2023-02-27 08:53:45 -08:00
..
2023-02-27 08:53:45 -08:00
2022-01-15 16:30:29 +02:00
2022-10-19 12:55:42 +02:00
2022-10-19 12:55:42 +02:00
2022-07-22 10:58:39 -07:00
2022-06-23 13:34:38 -07:00
2022-12-13 19:29:45 -08:00
2022-10-10 20:32:10 -07:00
2022-05-11 17:01:22 +10:00
2023-02-10 09:06:06 -08:00