linux-f2fs-devel.lists.sourceforge.net archive mirror
 help / color / mirror / Atom feed
* [f2fs-dev] cleanup the filemap / direct I/O interaction v3
@ 2023-05-31  7:19 Christoph Hellwig
  2023-05-31  7:19 ` [f2fs-dev] [PATCH 1/8] backing_dev: remove current->backing_dev_info Christoph Hellwig
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Christoph Hellwig @ 2023-05-31  7:19 UTC (permalink / raw)
  To: Matthew Wilcox
  Cc: Darrick J. Wong, linux-mm, Andreas Gruenbacher, Miklos Szeredi,
	cluster-devel, Ilya Dryomov, linux-ext4, linux-nfs, linux-block,
	Damien Le Moal, Alexander Viro, Jaegeuk Kim, ceph-devel, Xiubo Li,
	Trond Myklebust, Jens Axboe, Christian Brauner, Theodore Ts'o,
	linux-f2fs-devel, linux-xfs, Anna Schumaker, linux-fsdevel,
	Andrew Morton

Hi all,

this series cleans up some of the generic write helper calling
conventions and the page cache writeback / invalidation for
direct I/O.  This is a spinoff from the no-bufferhead kernel
project, for which we'll want to an use iomap based buffered
write path in the block layer.

Changes since v2:
 - stick to the existing behavior of returning a short write
   if the buffer fallback write or sync fails
 - bring back "fuse: use direct_write_fallback" which accidentally
   got lost in v2

Changes since v1:
 - remove current->backing_dev_info entirely
 - fix the pos/end calculation in direct_write_fallback
 - rename kiocb_invalidate_post_write to
   kiocb_invalidate_post_direct_write
 - typo fixes

diffstat:
 block/fops.c            |   18 +-----
 fs/btrfs/file.c         |    6 --
 fs/ceph/file.c          |    6 --
 fs/direct-io.c          |   10 ---
 fs/ext4/file.c          |   11 +---
 fs/f2fs/file.c          |    3 -
 fs/fuse/file.c          |    4 -
 fs/gfs2/file.c          |    6 --
 fs/iomap/buffered-io.c  |    9 ++-
 fs/iomap/direct-io.c    |   88 ++++++++++++---------------------
 fs/nfs/file.c           |    6 --
 fs/ntfs/file.c          |    2 
 fs/ntfs3/file.c         |    3 -
 fs/xfs/xfs_file.c       |    6 --
 fs/zonefs/file.c        |    4 -
 include/linux/fs.h      |    5 -
 include/linux/pagemap.h |    4 +
 include/linux/sched.h   |    3 -
 mm/filemap.c            |  126 ++++++++++++++++++++++++++----------------------
 19 files changed, 125 insertions(+), 195 deletions(-)


_______________________________________________
Linux-f2fs-devel mailing list
Linux-f2fs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2023-05-31  7:20 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-31  7:19 [f2fs-dev] cleanup the filemap / direct I/O interaction v3 Christoph Hellwig
2023-05-31  7:19 ` [f2fs-dev] [PATCH 1/8] backing_dev: remove current->backing_dev_info Christoph Hellwig
2023-05-31  7:20 ` [f2fs-dev] [PATCH 2/8] iomap: update ki_pos a little later in iomap_dio_complete Christoph Hellwig
2023-05-31  7:20 ` [f2fs-dev] [PATCH 3/8] filemap: update ki_pos in generic_perform_write Christoph Hellwig
2023-05-31  7:20 ` [f2fs-dev] [PATCH 4/8] filemap: add a kiocb_write_and_wait helper Christoph Hellwig
2023-05-31  7:20 ` [f2fs-dev] [PATCH 5/8] filemap: add a kiocb_invalidate_pages helper Christoph Hellwig
2023-05-31  7:20 ` [f2fs-dev] [PATCH 6/8] filemap: add a kiocb_invalidate_post_direct_write helper Christoph Hellwig
2023-05-31  7:20 ` [f2fs-dev] [PATCH 7/8] iomap: update ki_pos in iomap_file_buffered_write Christoph Hellwig
2023-05-31  7:20 ` [f2fs-dev] [PATCH 8/8] iomap: use kiocb_write_and_wait and kiocb_invalidate_pages Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).