]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xfs: add frextents to the lazysbcounters when rtgroups enabled
authorDarrick J. Wong <djwong@kernel.org>
Mon, 4 Nov 2024 04:19:20 +0000 (20:19 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 5 Nov 2024 21:38:40 +0000 (13:38 -0800)
commit35537f25d23697716f0070ea0a6e8b3f1fe10196
tree0abeb02e67584765f1d2543fb96d06af4f40f7c1
parent8458c4944e10aa8119d9de88e257d60a3537263e
xfs: add frextents to the lazysbcounters when rtgroups enabled

Make the free rt extent count a part of the lazy sb counters when the
realtime groups feature is enabled.  This is possible because the patch
to recompute frextents from the rtbitmap during log recovery predates
the code adding rtgroup support, hence we know that the value will
always be correct during runtime.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/libxfs/xfs_sb.c
fs/xfs/scrub/fscounters_repair.c
fs/xfs/xfs_trans.c