]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf20a482c482a58002d1e2650172d7ed9255bfddf
treee531f5a38374af23f937742227c1e6a8680ef4b9
parentd0ac6026f2c3cacd7a4e161522ef5a3f0c8fff6e
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