]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: always use unwritten extents for direct I/O writes
authorChristoph Hellwig <hch@infradead.org>
Sun, 9 Feb 2014 23:27:43 +0000 (10:27 +1100)
committerDave Chinner <david@fromorbit.com>
Sun, 9 Feb 2014 23:27:43 +0000 (10:27 +1100)
commit5fcf7de970aad4f9deb1229205d6a00fe0c35323
tree2849672259c700435b616feedf02dad25c8da1ee
parent48c7324ee4f9fc1b3d5708c6859029131704fd98
xfs: always use unwritten extents for direct I/O writes

To allow aio writes beyond i_size we need to create unwritten extents for
newly allocated blocks, similar to how we already do inside i_size.

Instead of adding another special case we now use unwritten extents
unconditionally.  This also marks the end of directly allocation data
extents in all of XFS - we now always use either delalloc or unwritten
extents.

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