]> www.infradead.org Git - users/dwmw2/linux.git/commit
xfs: keep quota directory inode loaded
authorDarrick J. Wong <djwong@kernel.org>
Mon, 2 Dec 2024 18:57:25 +0000 (10:57 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Fri, 13 Dec 2024 01:45:08 +0000 (17:45 -0800)
commite1d8602b6cfb757952827d11c7d26f2a1714fe82
tree63feeb0d0a0549c28555bac21a6c74850b9841a8
parent9b7280010366dbe32791acd498a37dc522f568db
xfs: keep quota directory inode loaded

In the same vein as the previous patch, there's no point in the metapath
scrub setup function doing a lookup on the quota metadir just so it can
validate that lookups work correctly.  Instead, retain the quota
directory inode in memory for the lifetime of the mount so that we can
check this meaningfully.

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
fs/xfs/xfs_qm.c
fs/xfs/xfs_qm.h