linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/1] Baby steps towards removing fuse_launder_folio
@ 2025-07-03 19:24 Matthew Wilcox (Oracle)
  2025-07-03 19:24 ` [PATCH 1/1] fuse: Use filemap_invalidate_pages() Matthew Wilcox (Oracle)
  0 siblings, 1 reply; 5+ messages in thread
From: Matthew Wilcox (Oracle) @ 2025-07-03 19:24 UTC (permalink / raw)
  To: Miklos Szeredi
  Cc: Matthew Wilcox (Oracle), Joanne Koong, Christoph Hellwig,
	linux-fsdevel

In looking at removing ->launder_folio() altogether, I noticed that
FUSE relies on it to write back dirty folios by calling
invalidate_inode_pages2() or invalidate_inode_pages2_range() directly.
I have formed an opinion that neither of these APIs should be exported
to modules; modules should be forced to use filemap_invalidate_pages()
instead.  It's more efficient because it does the writeback all-at-once.

There are other filesystems which use those APIs (notably btrfs), so
they're not going away immediately, but I thought I'd get some feedback
on this step before I go any further.

Matthew Wilcox (Oracle) (1):
  fuse: Use filemap_invalidate_pages()

 fs/fuse/dax.c   | 16 ++++------------
 fs/fuse/dir.c   | 12 +++++++-----
 fs/fuse/file.c  | 16 +++++-----------
 fs/fuse/inode.c | 17 +++++------------
 4 files changed, 21 insertions(+), 40 deletions(-)

-- 
2.47.2


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

end of thread, other threads:[~2025-07-07 22:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-03 19:24 [PATCH 0/1] Baby steps towards removing fuse_launder_folio Matthew Wilcox (Oracle)
2025-07-03 19:24 ` [PATCH 1/1] fuse: Use filemap_invalidate_pages() Matthew Wilcox (Oracle)
2025-07-04  9:27   ` kernel test robot
2025-07-04 18:55   ` kernel test robot
2025-07-07 22:07   ` 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).