summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_icache.h
diff options
context:
space:
mode:
authorDarrick J. Wong2018-05-09 19:03:56 +0200
committerDarrick J. Wong2018-05-16 02:57:05 +0200
commitd6b636ebb1c9f412687a7b6ed97c996247cc2380 (patch)
tree889b0ec861c28a50e721aa6aa683ff4e55307fd0 /fs/xfs/xfs_icache.h
parentxfs: add BMAPI_NORMAP flag to perform block remapping without updating rmapbt (diff)
downloadkernel-qcow2-linux-d6b636ebb1c9f412687a7b6ed97c996247cc2380.tar.gz
kernel-qcow2-linux-d6b636ebb1c9f412687a7b6ed97c996247cc2380.tar.xz
kernel-qcow2-linux-d6b636ebb1c9f412687a7b6ed97c996247cc2380.zip
xfs: halt auto-reclamation activities while rebuilding rmap
Rebuilding the reverse-mapping tree requires us to quiesce all inodes in the filesystem, so we must stop background reclamation of post-EOF and CoW prealloc blocks. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Dave Chinner <dchinner@redhat.com>
Diffstat (limited to 'fs/xfs/xfs_icache.h')
-rw-r--r--fs/xfs/xfs_icache.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/xfs/xfs_icache.h b/fs/xfs/xfs_icache.h
index d4a77588eca1..d69a0f5a6a73 100644
--- a/fs/xfs/xfs_icache.h
+++ b/fs/xfs/xfs_icache.h
@@ -131,4 +131,7 @@ xfs_fs_eofblocks_from_user(
int xfs_icache_inode_is_allocated(struct xfs_mount *mp, struct xfs_trans *tp,
xfs_ino_t ino, bool *inuse);
+void xfs_icache_disable_reclaim(struct xfs_mount *mp);
+void xfs_icache_enable_reclaim(struct xfs_mount *mp);
+
#endif