]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
commitd531d91d69902e55633ed834f531aa0b48d618cc
tree2849672259c700435b616feedf02dad25c8da1ee
parent6039257378e4c84da06e68230b14fef955508ce6
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