xfs: repair inode records
authorDarrick J. Wong <djwong@kernel.org>
Fri, 15 Dec 2023 18:03:36 +0000 (10:03 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Fri, 15 Dec 2023 18:03:36 +0000 (10:03 -0800)
commit2d295fe65776d15c06d53dbe3064f62e036e7c46
tree7c7e5817faedd719ee6faebd40b2aa06ff2fd0ff
parentd9041681dd2f5334529a68868c9266631c384de4
xfs: repair inode records

If an inode is so badly damaged that it cannot be loaded into the cache,
fix the ondisk metadata and try again.  If there /is/ a cached inode,
fix any problems and apply any optimizations that can be solved incore.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/Makefile
fs/xfs/scrub/inode.c
fs/xfs/scrub/inode_repair.c [new file with mode: 0644]
fs/xfs/scrub/repair.c
fs/xfs/scrub/repair.h
fs/xfs/scrub/scrub.c
fs/xfs/scrub/trace.h