xfs: separate function to check if inode shares extents
authorDarrick J. Wong <darrick.wong@oracle.com>
Fri, 16 Jun 2017 18:00:11 +0000 (11:00 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Mon, 19 Jun 2017 21:11:35 +0000 (14:11 -0700)
commitea7cdd7b7baffc40d1e60de7c93e5b1aabb3d081
treee531f5a38374af23f937742227c1e6a8680ef4b9
parent92ff7285f1df5590d53ab7031f0b86552b59121d
xfs: separate function to check if inode shares extents

Separate the "clear reflink flag" function into one function that checks
if the flag is needed, and a second function that checks and clears the
flag.  The inode scrub code will want to check the necessity of the flag
without clearing it.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
fs/xfs/xfs_reflink.c
fs/xfs/xfs_reflink.h