xfs: make last AG grow/shrink perag centric
authorDave Chinner <dchinner@redhat.com>
Thu, 7 Jul 2022 09:07:09 +0000 (19:07 +1000)
committerDave Chinner <david@fromorbit.com>
Thu, 7 Jul 2022 09:07:09 +0000 (19:07 +1000)
commitc6aee2481419b638a5257adbd3ffd33b11c59fa8
treee703c04f4032cbbea432d97af339068c7cdcb58c
parent7561cea5dbb97fecb952548a0fb74fb105bf4664
xfs: make last AG grow/shrink perag centric

Because the perag must exist for these operations, look it up as
part of the common shrink operations and pass it instead of the
mount/agno pair.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
fs/xfs/libxfs/xfs_ag.c
fs/xfs/libxfs/xfs_ag.h
fs/xfs/xfs_fsops.c
fs/xfs/xfs_ioctl.c