]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xfs: adjust xfs_bmap_add_attrfork for metadir
authorDarrick J. Wong <djwong@kernel.org>
Mon, 4 Nov 2024 04:18:56 +0000 (20:18 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 5 Nov 2024 21:38:32 +0000 (13:38 -0800)
commit61b6bdb30a4bee1f3417081aedfe9e346538f897
tree90a115518f844d132a954f79ad7ef391bbb57921
parentcc0cf84aa7fe249f8c1ff5f6cecf69de9d07b582
xfs: adjust xfs_bmap_add_attrfork for metadir

Online repair might use the xfs_bmap_add_attrfork to repair a file in
the metadata directory tree if (say) the metadata file lacks the correct
parent pointers.  In that case, it is not correct to check that the file
is dqattached -- metadata files must be not have /any/ dquot attached at
all.  Adjust the assertions appropriately.

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