xfs: introduce reflink utility functions
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 3 Oct 2016 16:11:25 +0000 (09:11 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Mon, 3 Oct 2016 16:11:25 +0000 (09:11 -0700)
commit350a27a6a65cc5dd2ba1b220e8641993414816d2
treee5744fb102288ea8903ca77e05484095c3ffccbf
parentd0e853f3600cd2a3f7c4a067dc38155c77c51df9
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>
fs/xfs/libxfs/xfs_refcount.c
fs/xfs/libxfs/xfs_refcount.h