linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 00/13] fuse: use folios instead of pages for requests
@ 2024-10-22 18:54 Joanne Koong
  2024-10-22 18:54 ` [PATCH v2 01/13] fuse: support folios in struct fuse_args_pages and fuse_copy_pages() Joanne Koong
                   ` (12 more replies)
  0 siblings, 13 replies; 16+ messages in thread
From: Joanne Koong @ 2024-10-22 18:54 UTC (permalink / raw)
  To: miklos, linux-fsdevel; +Cc: josef, bernd.schubert, willy, kernel-team

This patchset converts fuse requests to use folios instead of pages. Right
now, all folios in fuse are one page, but a subsequent patchset will be
enabling larger-size folios on fuse. This patchset has no functional
changes. Any multi-page allocations for requests (eg ioctl request) will
also be optimized in a subsequent patchset as well.

v1: https://lore.kernel.org/linux-fsdevel/20241002165253.3872513-1-joannelkoong@gmail.com/

Changes from v1 -> v2:
* Address Josef's comments on v1
  - Clarify comment about folio replacement in page cache 
  - Remove unused fuse_page_descs_length_init() and fuse_pages_alloc()
  - Copy comment to folio_mark_dirty_lock()
* Add Josef's Reviewed-bys
* Refactor page_set_dirty_lock() to use folio_mark_dirty_lock()
* Keep using variable naming "nr_pages" in some places (eg fuse_direct_io)
  instead of "nr_folios" to make accounting more clear for max_pages, which
  reduce variable naming churn in subsequent patchset that supports large folio.

Joanne Koong (13):
  fuse: support folios in struct fuse_args_pages and fuse_copy_pages()
  fuse: add support in virtio for requests using folios
  fuse: convert cuse to use folios
  fuse: convert readlink to use folios
  fuse: convert readdir to use folios
  fuse: convert reads to use folios
  fuse: convert writes (non-writeback) to use folios
  fuse: convert ioctls to use folios
  fuse: convert retrieves to use folios
  fuse: convert writebacks to use folios
  mm/writeback: add folio_mark_dirty_lock()
  fuse: convert direct io to use folios
  fuse: remove pages for requests and exclusively use folios

 fs/fuse/cuse.c      |  31 ++---
 fs/fuse/dev.c       |  42 ++++---
 fs/fuse/dir.c       |  28 ++---
 fs/fuse/file.c      | 268 +++++++++++++++++++++++---------------------
 fs/fuse/fuse_i.h    |  36 +++---
 fs/fuse/ioctl.c     |  31 +++--
 fs/fuse/readdir.c   |  20 ++--
 fs/fuse/virtio_fs.c |  58 +++++-----
 include/linux/mm.h  |   1 +
 mm/folio-compat.c   |   6 +
 mm/page-writeback.c |  22 ++--
 11 files changed, 292 insertions(+), 251 deletions(-)

-- 
2.43.5


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

end of thread, other threads:[~2024-10-23 20:54 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-22 18:54 [PATCH v2 00/13] fuse: use folios instead of pages for requests Joanne Koong
2024-10-22 18:54 ` [PATCH v2 01/13] fuse: support folios in struct fuse_args_pages and fuse_copy_pages() Joanne Koong
2024-10-22 18:54 ` [PATCH v2 02/13] fuse: add support in virtio for requests using folios Joanne Koong
2024-10-22 18:54 ` [PATCH v2 03/13] fuse: convert cuse to use folios Joanne Koong
2024-10-22 18:54 ` [PATCH v2 04/13] fuse: convert readlink " Joanne Koong
2024-10-22 18:54 ` [PATCH v2 05/13] fuse: convert readdir " Joanne Koong
2024-10-22 18:54 ` [PATCH v2 06/13] fuse: convert reads " Joanne Koong
2024-10-22 18:54 ` [PATCH v2 07/13] fuse: convert writes (non-writeback) " Joanne Koong
2024-10-22 18:54 ` [PATCH v2 08/13] fuse: convert ioctls " Joanne Koong
2024-10-22 18:54 ` [PATCH v2 09/13] fuse: convert retrieves " Joanne Koong
2024-10-23 17:23   ` Joanne Koong
2024-10-23 20:53   ` kernel test robot
2024-10-22 18:54 ` [PATCH v2 10/13] fuse: convert writebacks " Joanne Koong
2024-10-22 18:54 ` [PATCH v2 11/13] mm/writeback: add folio_mark_dirty_lock() Joanne Koong
2024-10-22 18:54 ` [PATCH v2 12/13] fuse: convert direct io to use folios Joanne Koong
2024-10-22 18:54 ` [PATCH v2 13/13] fuse: remove pages for requests and exclusively " Joanne Koong

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).