]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit18c2f23f8578e7f5f3095c5deeaef2da8f9cfa51
treefd4293998868758f4e522165babcd4ecbff417a4
parentfc32d2d27bd3bc2310f596ad2ea94cf1c6aeaab8
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