]> asedeno.scripts.mit.edu Git - linux.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)
commit5c5b6f7585d272a2fccf4ccf9b85251f6fbeb124
treed4eefce86eaaac71ecf36ec3e13481688edbea99
parent12dfb58af61da826839f50cf8cd089150c478880
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