OSDN Git Service

xfs: handle zeroing in xfs_file_iomap_begin_delay
authorChristoph Hellwig <hch@lst.de>
Thu, 18 Oct 2018 06:19:26 +0000 (17:19 +1100)
committerDave Chinner <david@fromorbit.com>
Thu, 18 Oct 2018 06:19:26 +0000 (17:19 +1100)
commit0365c5d6c3d4bcf17a1aa38719e48351932c62b6
tree2332527e376682dbbb03617919b7e3c407db8bab
parentdaa79baefc47293c753fed191d722f7ef605a303
xfs: handle zeroing in xfs_file_iomap_begin_delay

We only need to allocate blocks for zeroing for reflink inodes,
and for we currently have a special case for reflink files in
the otherwise direct I/O path that I'd like to get rid of.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_iomap.c