xfs: support reserved blocks for the rt extent counter
authorChristoph Hellwig <hch@lst.de>
Sun, 9 Feb 2025 05:19:06 +0000 (06:19 +0100)
committerChristoph Hellwig <hch@lst.de>
Mon, 3 Mar 2025 15:16:43 +0000 (08:16 -0700)
commitc8c4e8bc692ae0cd062eaabf99ff9d0d143a6370
tree42f660b5c2c2acceb5401471e9e5dc7a6fbd42fb
parent712bae96631852c1a1822ee4f57a08ccd843358b
xfs: support reserved blocks for the rt extent counter

The zoned space allocator will need reserved RT extents for garbage
collection and zeroing of partial blocks.  Move the resblks related
fields into the freecounter array so that they can be used for all
counters.

Co-developed-by: Hans Holmberg <hans.holmberg@wdc.com>
Signed-off-by: Hans Holmberg <hans.holmberg@wdc.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
fs/xfs/scrub/fscounters.c
fs/xfs/xfs_fsops.c
fs/xfs/xfs_fsops.h
fs/xfs/xfs_ioctl.c
fs/xfs/xfs_mount.c
fs/xfs/xfs_mount.h
fs/xfs/xfs_super.c