]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: refactor xfs_bunmapi_cow
authorChristoph Hellwig <hch@lst.de>
Tue, 25 Oct 2016 01:59:46 +0000 (12:59 +1100)
committerDave Chinner <david@fromorbit.com>
Tue, 25 Oct 2016 01:59:46 +0000 (12:59 +1100)
commitece930fa14a3439e40cd1b43063cab5b85ab9407
treeede6d85147e00df274bfdf10756b26a115807ccb
parentb3fd8db7f773a377c4cebc9bcc8852126f25522a
xfs: refactor xfs_bunmapi_cow

Source kernel commit: fa5c836ca8eb5bad6316ddfc066acbc4e2485356

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>
libxfs/libxfs_priv.h
libxfs/xfs_bmap.c
libxfs/xfs_bmap.h