Skip to content

fuse: use iomap for buffered writes + writeback

Joanne Koong linux-fsdevel 5 versions – Applied

Status from this message: Applied to the vfs-6.17.iomap branch of the vfs/vfs.git tree.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest5 patches 2 repliesApplied
  2. v45 patches 5 repliesSuperseded
  3. v316 patches 30 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v216 patches11 repliesSuperseded
v18 patches61 repliesSuperseded

Changes in v5 from the cover letter

* Use PAGE_SHIFT instead of dividing by PAGE_SIZE (Darrick)
* Add comment about nr_bytes not overflowing
* Round number of pages up when comparing against max_pages (me)

Patches in v5 Applied

#Subject and filesSizeRepliesApplied
1/5fuse: use iomap for buffered writesfs/fuse/Kconfig fs/fuse/file.c+55 -940 replies
2/5fuse: use iomap for writebackfs/fuse/file.c+82 -511 reply
3/5fuse: use iomap for folio launderingfs/fuse/file.c+12 -400 replies
4/5fuse: hook into iomap for invalidating and checking partial uptodatenessfs/fuse/file.c+2 -00 replies
5/5fuse: refactor writeback to use iomap_writepage_ctx inodefs/fuse/file.c+12 -160 replies

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchDarrick J. Wong
1/5R-b
2/5R-b
3/5R-b
4/5R-b
5/5R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v5 thread

Cover letter [PATCH v5 0/5] fuse: use iomap for buffered writes + writeback

This series adds fuse iomap support for buffered writes and dirty folio writeback. This is needed so that granular uptodate and dirty tracking can be used in fuse when large folios are enabled. This has two big advantages. For writes, instead of the entire folio needing to be read into the page cache, only the relevant portions need to be. For writeback, only the dirty portions need to be written back instead of the entire folio.

This patchset is on top of Christoph's iomap patchset which is in his git tree git://git.infradead.org/users/hch/misc.git iomap-writeback-refactor and has been merged into the vfs tree.

The changes in this patchset can be found in this git tree,
https://github.com/joannekoong/linux/commits/fuse_iomap/

Please note that this patchset does not enable large folios yet. That will be sent out in a separate future patchset.

Thanks,
Joanne

Changeset
-------
v4 -> v5:
* Use PAGE_SHIFT instead of dividing by PAGE_SIZE (Darrick)
* Add comment about nr_bytes not overflowing
* Round number of pages up when comparing against max_pages (me)

v4:
https://lore.kernel.org/linux-fsdevel/[email protected]/

v3 -> v4:
* Get rid of writethrough goto (Miklos)
* Move iomap_start_folio_write call to after error check (Darrick)
* Tidy up args for fuse_writepage_need_send() (me)
v3:
https://lore.kernel.org/linux-fsdevel/[email protected]/

v2 -> v3:
* Fix up fuse patches to use iomap APIs from Christoph's patches
* Drop CONFIG_BLOCK patches
* Add patch to use iomap for invalidation and partial uptodateness check
* Add patch for refactoring fuse writeback to use iomap_writepage_ctx inode v2:
https://lore.kernel.org/linux-fsdevel/[email protected]/

v1 -> v2:
* Drop IOMAP_IN_MEM type and just use IOMAP_MAPPED for fuse
* Separate out new helper functions added to iomap into separate commits
* Update iomap documentation
* Clean up iomap_writeback_dirty_folio() locking logic w/ christoph's recommendation
* Refactor ->map_blocks() to generic ->writeback_folio()
* Refactor ->submit_ioend() to generic ->writeback_complete()
* Add patch for changing 'count' to 'async_writeback'
* Rebase commits onto linux branch instead of fuse branch v1:
https://lore.kernel.org/linux-fsdevel/[email protected]/

Joanne Koong (5):
fuse: use iomap for buffered writes
fuse: use iomap for writeback
fuse: use iomap for folio laundering
fuse: hook into iomap for invalidating and checking partial
uptodateness
fuse: refactor writeback to use iomap_writepage_ctx inode

 fs/fuse/Kconfig |   1 +
 fs/fuse/file.c  | 345 +++++++++++++++++++++---------------------------
 2 files changed, 154 insertions(+), 192 deletions(-)
Signature · 1 line
2.47.1