xfs: fix di_metatype field of inodes that won't load
authorDarrick J. Wong <djwong@kernel.org>
Mon, 4 Nov 2024 04:18:59 +0000 (20:18 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 5 Nov 2024 21:38:34 +0000 (13:38 -0800)
commit5dab2daa8aa1a127523f2babaf9611d91c28acea
tree479dd5ea1068f9d0c4c6f0c81d1b490073af6040
parentaec2eb7da8f777998164a8ce4e38b84fd0136f97
xfs: fix di_metatype field of inodes that won't load

Make sure that the di_metatype field is at least set plausibly so that
later scrubbers could set the real type.

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