]> www.infradead.org Git - users/hch/misc.git/commit
xfs: metapath scrubber should use the already loaded inodes
authorDarrick J. Wong <djwong@kernel.org>
Mon, 2 Dec 2024 18:57:24 +0000 (10:57 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Fri, 13 Dec 2024 01:45:08 +0000 (17:45 -0800)
commit9b7280010366dbe32791acd498a37dc522f568db
treee552cd7f9ada092fe8faea688af5ff89e051ad9f
parenta440a28ddbdcb861150987b4d6e828631656b92f
xfs: metapath scrubber should use the already loaded inodes

Don't waste time in xchk_setup_metapath_dqinode doing a second lookup of
the quota inodes, just grab them from the quotainfo structure.  The
whole point of this scrubber is to make sure that the dirents exist, so
it's completely silly to do lookups.

Cc: <stable@vger.kernel.org> # v6.13-rc1
Fixes: 128a055291ebbc ("xfs: scrub quota file metapaths")
Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/scrub/metapath.c