diff options
author | Darrick J. Wong <djwong@kernel.org> | 2021-09-30 14:16:10 -0700 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2021-10-22 16:41:17 -0700 |
commit | 1bc71fc8c51d5b0ac41558cba475e013b3cf1fb8 (patch) | |
tree | 94c2a37ee4d3f08166088b661c55694778025220 /fs/xfs/libxfs | |
parent | 89b052a624167d8f8d39c706669e3b0ae6107173 (diff) |
xfs: hook live realtime rmap operations during a repair operation
Hook the regular realtime rmap code when an rtrmapbt 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>
Diffstat (limited to 'fs/xfs/libxfs')
-rw-r--r-- | fs/xfs/libxfs/xfs_rmap.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/xfs/libxfs/xfs_rmap.c b/fs/xfs/libxfs/xfs_rmap.c index a6be6c7fe6e5..abd0f3fd4e28 100644 --- a/fs/xfs/libxfs/xfs_rmap.c +++ b/fs/xfs/libxfs/xfs_rmap.c @@ -827,6 +827,10 @@ xfs_rmap_update_hook( if (pag) xfs_hook_call(&pag->pag_rmap_update_hooks, op, &p); +#ifdef CONFIG_XFS_RT + else + xfs_hook_call(&tp->t_mountp->m_rtrmap_update_hooks, op, &p); +#endif } #else # define xfs_rmap_update_hook(t, p, o, s, b, u, oi) do { } while(0) |