]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xfs: fixup the metabtree reservation in xrep_reap_metadir_fsblocks
authorChristoph Hellwig <hch@lst.de>
Sat, 15 Feb 2025 06:43:02 +0000 (07:43 +0100)
committerChristoph Hellwig <hch@lst.de>
Mon, 3 Mar 2025 15:16:43 +0000 (08:16 -0700)
commitc0bd736d33844fa0c2f9c5b401b51d5908530b4e
treea6fd70f9663af4e21ce9f6a02bde631dba40c1af
parenta0760cca8e1007be7bfa154004e566b2a4fbcd71
xfs: fixup the metabtree reservation in xrep_reap_metadir_fsblocks

All callers of xrep_reap_metadir_fsblocks need to fix up the metabtree
reservation, otherwise they'd leave the reservations in an incoherent
state.  Move the call to xrep_reset_metafile_resv into
xrep_reap_metadir_fsblocks so it always is taken care of, and remove
now superfluous helper functions in the callers.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
fs/xfs/scrub/reap.c
fs/xfs/scrub/rtrefcount_repair.c
fs/xfs/scrub/rtrmap_repair.c