summaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_fsops.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2025-02-09 06:19:06 +0100
committerChristoph Hellwig <hch@lst.de>2025-03-03 08:16:43 -0700
commitc8c4e8bc692ae0cd062eaabf99ff9d0d143a6370 (patch)
tree42f660b5c2c2acceb5401471e9e5dc7a6fbd42fb /fs/xfs/xfs_fsops.h
parent712bae96631852c1a1822ee4f57a08ccd843358b (diff)
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>
Diffstat (limited to 'fs/xfs/xfs_fsops.h')
-rw-r--r--fs/xfs/xfs_fsops.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/xfs/xfs_fsops.h b/fs/xfs/xfs_fsops.h
index 3e2f73bcf831..9d23c361ef56 100644
--- a/fs/xfs/xfs_fsops.h
+++ b/fs/xfs/xfs_fsops.h
@@ -8,7 +8,8 @@
int xfs_growfs_data(struct xfs_mount *mp, struct xfs_growfs_data *in);
int xfs_growfs_log(struct xfs_mount *mp, struct xfs_growfs_log *in);
-int xfs_reserve_blocks(struct xfs_mount *mp, uint64_t request);
+int xfs_reserve_blocks(struct xfs_mount *mp, enum xfs_free_counter cnt,
+ uint64_t request);
int xfs_fs_goingdown(struct xfs_mount *mp, uint32_t inflags);
int xfs_fs_reserve_ag_blocks(struct xfs_mount *mp);