xfs: refactor xfs_bunmapi_cow
authorChristoph Hellwig <hch@lst.de>
Thu, 20 Oct 2016 04:54:14 +0000 (15:54 +1100)
committerDave Chinner <david@fromorbit.com>
Thu, 20 Oct 2016 04:54:14 +0000 (15:54 +1100)
commitfa5c836ca8eb5bad6316ddfc066acbc4e2485356
tree7a35b262a7c7d6fdb52148b39e11022a7377def2
parent3ba020befef030aaabbd5eb82a09f6ddf02a9542
xfs: refactor xfs_bunmapi_cow

Split out two helpers for deleting delayed or real extents from the COW fork.
This allows to call them directly from xfs_reflink_cow_end_io once that
function is refactored to iterate the extent tree.  It will also allow
to reuse the delalloc deletion from xfs_bunmapi in the future.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/libxfs/xfs_bmap.c
fs/xfs/libxfs/xfs_bmap.h
fs/xfs/xfs_reflink.c