]> asedeno.scripts.mit.edu Git - linux.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)
commitffb375a8cf208a5dab818f65b633cdf368f7953c
tree187d90c2b5c91962afb6a77e6c6ae385866d37ea
parentdd26b84640cc92a0dc30ea5feee2a7b30852ac06
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