From: Joanne Koong <joannelkoong@gmail.com>
To: miklos@szeredi.hu, linux-fsdevel@vger.kernel.org
Cc: josef@toxicpanda.com, bernd.schubert@fastmail.fm,
willy@infradead.org, kernel-team@meta.com
Subject: [PATCH v3 00/13] fuse: use folios instead of pages for requests
Date: Thu, 24 Oct 2024 10:17:56 -0700 [thread overview]
Message-ID: <20241024171809.3142801-1-joannelkoong@gmail.com> (raw)
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 requests) will
also be optimized in a subsequent patchset as well.
v2:
https://lore.kernel.org/linux-fsdevel/20241022185443.1891563-1-joannelkoong@gmail.com/
Changes from v2 -> v3:
* Fix wrong variable use in fuse_retrieve, which was introduced in the v1 ->
v2 variable name refactoring.
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 | 41 ++++---
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, 291 insertions(+), 251 deletions(-)
--
2.43.5
next reply other threads:[~2024-10-24 17:21 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-24 17:17 Joanne Koong [this message]
2024-10-24 17:17 ` [PATCH v3 01/13] fuse: support folios in struct fuse_args_pages and fuse_copy_pages() Joanne Koong
2024-10-24 17:17 ` [PATCH v3 02/13] fuse: add support in virtio for requests using folios Joanne Koong
2024-10-24 17:17 ` [PATCH v3 03/13] fuse: convert cuse to use folios Joanne Koong
2024-10-24 17:18 ` [PATCH v3 04/13] fuse: convert readlink " Joanne Koong
2024-10-24 17:18 ` [PATCH v3 05/13] fuse: convert readdir " Joanne Koong
2024-10-24 17:18 ` [PATCH v3 06/13] fuse: convert reads " Joanne Koong
2024-10-24 17:18 ` [PATCH v3 07/13] fuse: convert writes (non-writeback) " Joanne Koong
2024-10-24 17:18 ` [PATCH v3 08/13] fuse: convert ioctls " Joanne Koong
2024-10-24 17:18 ` [PATCH v3 09/13] fuse: convert retrieves " Joanne Koong
2024-10-24 17:18 ` [PATCH v3 10/13] fuse: convert writebacks " Joanne Koong
2024-10-24 17:18 ` [PATCH v3 11/13] mm/writeback: add folio_mark_dirty_lock() Joanne Koong
2024-10-24 17:18 ` [PATCH v3 12/13] fuse: convert direct io to use folios Joanne Koong
2024-10-24 17:18 ` [PATCH v3 13/13] fuse: remove pages for requests and exclusively " Joanne Koong
2024-11-06 11:20 ` [PATCH v3 00/13] fuse: use folios instead of pages for requests Miklos Szeredi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241024171809.3142801-1-joannelkoong@gmail.com \
--to=joannelkoong@gmail.com \
--cc=bernd.schubert@fastmail.fm \
--cc=josef@toxicpanda.com \
--cc=kernel-team@meta.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=miklos@szeredi.hu \
--cc=willy@infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox