summaryrefslogtreecommitdiff
path: root/fs/xfs/libxfs/xfs_refcount.h
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2016-10-03 16:11:25 (GMT)
committerDarrick J. Wong <darrick.wong@oracle.com>2016-10-03 16:11:25 (GMT)
commit350a27a6a65cc5dd2ba1b220e8641993414816d2 (patch)
treee5744fb102288ea8903ca77e05484095c3ffccbf /fs/xfs/libxfs/xfs_refcount.h
parentd0e853f3600cd2a3f7c4a067dc38155c77c51df9 (diff)
downloadlinux-350a27a6a65cc5dd2ba1b220e8641993414816d2.tar.xz
xfs: introduce reflink utility functions
These functions will be used by the other reflink functions to find the maximum length of a range of shared blocks. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.coM> Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/xfs/libxfs/xfs_refcount.h')
-rw-r--r--fs/xfs/libxfs/xfs_refcount.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/xfs/libxfs/xfs_refcount.h b/fs/xfs/libxfs/xfs_refcount.h
index 0a1f290..adba3ae 100644
--- a/fs/xfs/libxfs/xfs_refcount.h
+++ b/fs/xfs/libxfs/xfs_refcount.h
@@ -54,4 +54,8 @@ extern int xfs_refcount_finish_one(struct xfs_trans *tp,
xfs_fsblock_t *new_fsb, xfs_extlen_t *new_len,
struct xfs_btree_cur **pcur);
+extern int xfs_refcount_find_shared(struct xfs_btree_cur *cur,
+ xfs_agblock_t agbno, xfs_extlen_t aglen, xfs_agblock_t *fbno,
+ xfs_extlen_t *flen, bool find_end_of_shared);
+
#endif /* __XFS_REFCOUNT_H__ */