]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xfs: support repairing metadata btrees rooted in metadir inodes
authorDarrick J. Wong <djwong@kernel.org>
Thu, 21 Nov 2024 00:20:42 +0000 (16:20 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Mon, 23 Dec 2024 21:06:08 +0000 (13:06 -0800)
commitc6904f6788b79e8d2275a55cbb71b4992be29d92
tree3cb17a3a5e540c1d10acc21a21c81a24b13404d8
parent8defee8dff2b202702cdf33f6d8577adf9ad3e82
xfs: support repairing metadata btrees rooted in metadir inodes

Adapt the repair code so that we can stage a new btree in the data fork
area of a metadir inode and reap the old blocks.  We already have nearly
all of the infrastructure; the only parts that were missing were the
metadata inode reservation handling.

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