]> asedeno.scripts.mit.edu Git - linux.git/commit
xfs: improve the IOMAP_NOWAIT check for COW inodes
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)
commit1e190f8e8098b95d9f48f91db8b618a2d371c13a
treebe95f2994bd1575a6c8ff4a3e7ff2b2ddc30fe0a
parent5c5b6f7585d272a2fccf4ccf9b85251f6fbeb124
xfs: improve the IOMAP_NOWAIT check for COW inodes

Only bail out once we know that a COW allocation is actually required,
similar to how we handle normal data fork allocations.

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