]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: hook live rmap operations during a repair operation
authorDarrick J. Wong <djwong@kernel.org>
Mon, 22 Apr 2024 17:01:12 +0000 (10:01 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Mon, 3 Jun 2024 18:37:40 +0000 (11:37 -0700)
commita2fd18b48372e236a30518f642f9b358274ecc84
treea5de76e04023b83fda31e9f1fc1acba6af57c070
parent9ff7cce744b000b69a9de0bdcffc1593faefd2f9
xfs: hook live rmap operations during a repair operation

Source kernel commit: 7e1b84b24d257700e417bc9cd724c1efdff653d7

Hook the regular rmap code when an rmapbt repair operation is running so
that we can unlock the AGF buffer to scan the filesystem and keep the
in-memory btree up to date during the scan.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
libxfs/xfs_ag.c
libxfs/xfs_ag.h
libxfs/xfs_rmap.c
libxfs/xfs_rmap.h