]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: cleanup xfs_direct_write_iomap_begin
authorChristoph Hellwig <hch@lst.de>
Sat, 19 Oct 2019 16:09:47 +0000 (09:09 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Mon, 21 Oct 2019 16:04:58 +0000 (09:04 -0700)
commit50907833edd39ea21c780bc85de529ae3f13bf14
treed4eefce86eaaac71ecf36ec3e13481688edbea99
parent4db17f17f40bd891e9f02d4966b02e4de4c2e85c
xfs: cleanup xfs_direct_write_iomap_begin

Move more checks into the helpers that determine if we need a COW
operation or allocation and split the return path for when an existing
data for allocation has been found versus a new allocation.

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