summaryrefslogtreecommitdiffstats
path: root/fs/xfs/libxfs/xfs_refcount.h
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2018-01-16 18:52:14 -0800
committerDarrick J. Wong <darrick.wong@oracle.com>2018-01-17 21:00:44 -0800
commit49db55eca5665e32c9d3e67a7d5694bcc6c274de (patch)
treee739e377b05d0e3e7cf8e410fcabf4b3066cdabc /fs/xfs/libxfs/xfs_refcount.h
parented7c52d4bf92ac1f05b8c251a44a8bf4688f8786 (diff)
downloadlinux-49db55eca5665e32c9d3e67a7d5694bcc6c274de.tar.gz
linux-49db55eca5665e32c9d3e67a7d5694bcc6c274de.tar.bz2
linux-49db55eca5665e32c9d3e67a7d5694bcc6c274de.zip
xfs: add scrub cross-referencing helpers for the refcount btrees
Add a couple of functions to the refcount btrees that will be used to cross-reference metadata against the refcountbt. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Dave Chinner <dchinner@redhat.com>
Diffstat (limited to 'fs/xfs/libxfs/xfs_refcount.h')
-rw-r--r--fs/xfs/libxfs/xfs_refcount.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/xfs/libxfs/xfs_refcount.h b/fs/xfs/libxfs/xfs_refcount.h
index eafb9d1f3b37..2a731ac68fe4 100644
--- a/fs/xfs/libxfs/xfs_refcount.h
+++ b/fs/xfs/libxfs/xfs_refcount.h
@@ -83,4 +83,7 @@ static inline xfs_fileoff_t xfs_refcount_max_unmap(int log_res)
return (log_res * 3 / 4) / XFS_REFCOUNT_ITEM_OVERHEAD;
}
+extern int xfs_refcount_has_record(struct xfs_btree_cur *cur,
+ xfs_agblock_t bno, xfs_extlen_t len, bool *exists);
+
#endif /* __XFS_REFCOUNT_H__ */