Here's an update of my gfs2 iomap write patch queue, with support for buffered writes as well as direct I/O reads and writes through iomap. This update fixes a few bugs in the gfs2 specific parts. The patches are still meant for the upcoming merge window. The first five patches are minor gfs2 specific cleanups and improvements. The actual fun starts with patch "iomap: Add write_{begin,end} iomap operations" which adds callbacks into the filesystem for any per-page processing. Christoph has suggested that at least the stuffed inode (aka. inline data) handline should be moved to the iomap_{begin,end} operations. As the last patch tries to demonstrate, this is a bit tricky, so even though Christoph's approach is slightly cleaner conceptually, it doesn't look like an improvement overall. Patches "iomap: Mark newly allocated buffer heads as new" and "iomap: Complete partial direct I/O writes synchronously" have been added as discussed. A 4.17-rc7 based version of the patches can be found here: https://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2.git/log/?h=iomap-write Thanks, Andreas Andreas Gruenbacher (13): gfs2: Update find_metapath comment gfs2: hole_size improvement gfs2: gfs2_stuffed_write_end cleanup gfs2: Remove ordered write mode handling from gfs2_trans_add_data gfs2: Iomap cleanups and improvements iomap: Add write_{begin,end} iomap operations iomap: Mark newly allocated buffer heads as new gfs2: iomap buffered write support gfs2: gfs2_extent_length cleanup iomap: Complete partial direct I/O writes synchronously gfs2: iomap direct I/O support gfs2: Remove gfs2_write_{begin,end} gfs2: Handle stuffed files in iomap_{begin,end} Christoph Hellwig (1): iomap: inline data should be an iomap type, not a flag fs/buffer.c | 8 +- fs/ext2/inode.c | 2 + fs/ext4/inline.c | 4 +- fs/ext4/inode.c | 2 + fs/gfs2/aops.c | 344 +------------------ fs/gfs2/aops.h | 22 ++ fs/gfs2/bmap.c | 772 ++++++++++++++++++++++++++++++++---------- fs/gfs2/bmap.h | 6 +- fs/gfs2/file.c | 174 +++++++++- fs/gfs2/inode.c | 4 - fs/gfs2/log.h | 7 +- fs/gfs2/quota.c | 5 +- fs/gfs2/trans.c | 27 +- fs/iomap.c | 109 +++--- fs/xfs/xfs_iomap.c | 2 + include/linux/iomap.h | 25 +- 16 files changed, 920 insertions(+), 593 deletions(-) create mode 100644 fs/gfs2/aops.h -- 2.17.0