]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: pass two imaps to xfs_reflink_allocate_cow
authorChristoph Hellwig <hch@lst.de>
Sat, 19 Oct 2019 16:09:43 +0000 (09:09 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Mon, 21 Oct 2019 16:04:58 +0000 (09:04 -0700)
commitf979a1d6ea279ad28f7ff0adca6f4e15c555e6c0
tree187d90c2b5c91962afb6a77e6c6ae385866d37ea
parentba4cf9f8a6e6c1843eafd76078305a9eb23b157b
xfs: pass two imaps to xfs_reflink_allocate_cow

xfs_reflink_allocate_cow consumes the source data fork imap, and
potentially returns the COW fork imap.  Split the arguments in two
to clear up the calling conventions and to prepare for returning
a source iomap from ->iomap_begin.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_iomap.c
fs/xfs/xfs_reflink.c
fs/xfs/xfs_reflink.h