iomap: add initial support for writes without buffer heads
authorChristoph Hellwig <hch@lst.de>
Tue, 19 Jun 2018 22:10:58 +0000 (15:10 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 20 Jun 2018 16:32:41 +0000 (09:32 -0700)
commitc03cea42149de56fbae2301d7123daaa2cfe80e2
treefd4293998868758f4e522165babcd4ecbff417a4
parent72b4daa241295440f98e80ae21294a67b27ca091
iomap: add initial support for writes without buffer heads

For now just limited to blocksize == PAGE_SIZE, where we can simply read
in the full page in write begin, and just set the whole page dirty after
copying data into it.  This code is enabled by default and XFS will now
be feed pages without buffer heads in ->writepage and ->writepages.

If a file system sets the IOMAP_F_BUFFER_HEAD flag on the iomap the old
path will still be used, this both helps the transition in XFS and
prepares for the gfs2 migration to the iomap infrastructure.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/iomap.c
fs/xfs/xfs_iomap.c
include/linux/iomap.h