xfs: allocate direct I/O COW blocks in iomap_begin
authorChristoph Hellwig <hch@lst.de>
Mon, 6 Feb 2017 18:51:03 +0000 (10:51 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 7 Feb 2017 01:47:47 +0000 (17:47 -0800)
commit3c68d44a2b49a0ac9165faa9c191e1e618c8a8d5
tree5b9681a04b0fddce02510303a33546794f2b0568
parenta14234c72bf41ac96bc8c98e96e2c84b6d4bd4f2
xfs: allocate direct I/O COW blocks in iomap_begin

Instead of preallocating all the required COW blocks in the high-level
write code do it inside the iomap code, like we do for all other I/O.

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_file.c
fs/xfs/xfs_iomap.c
fs/xfs/xfs_reflink.c
fs/xfs/xfs_reflink.h
fs/xfs/xfs_trace.h