diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2016-10-03 09:11:25 -0700 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2016-10-03 09:11:25 -0700 |
commit | 350a27a6a65cc5dd2ba1b220e8641993414816d2 (patch) | |
tree | e5744fb102288ea8903ca77e05484095c3ffccbf /fs/xfs/libxfs/xfs_refcount.h | |
parent | d0e853f3600cd2a3f7c4a067dc38155c77c51df9 (diff) | |
download | linux-350a27a6a65cc5dd2ba1b220e8641993414816d2.tar.gz |
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.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/xfs/libxfs/xfs_refcount.h b/fs/xfs/libxfs/xfs_refcount.h index 0a1f290269df..adba3ae2b55f 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__ */ |