linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 00/10] Add and use folio_next_pos()
@ 2025-10-24 17:08 Matthew Wilcox (Oracle)
  2025-10-24 17:08 ` [PATCH 01/10] filemap: Add folio_next_pos() Matthew Wilcox (Oracle)
                   ` (11 more replies)
  0 siblings, 12 replies; 28+ messages in thread
From: Matthew Wilcox (Oracle) @ 2025-10-24 17:08 UTC (permalink / raw)
  To: linux-fsdevel, Christian Brauner; +Cc: Matthew Wilcox (Oracle)

It's relatively common in filesystems to want to know the end of the
current folio we're looking at.  So common in fact that btrfs has its own
helper for that.  Lift that helper to filemap and use it everywhere that
I've noticed it could be used.  This actually fixes a long-standing bug
in ocfs2 on 32-bit systems with files larger than 2GiB.  Presumably this
is not a common configuration, but I've marked it for backport anyway.

The other filesystems are all fine; none of them have a bug, they're
just mildly inefficient.  I think this should all go in via Christian's
tree, ideally with acks from the various fs maintainers (cc'd on their
individual patches).

Matthew Wilcox (Oracle) (10):
  filemap: Add folio_next_pos()
  btrfs: Use folio_next_pos()
  buffer: Use folio_next_pos()
  ext4: Use folio_next_pos()
  f2fs: Use folio_next_pos()
  gfs2: Use folio_next_pos()
  iomap: Use folio_next_pos()
  netfs: Use folio_next_pos()
  xfs: Use folio_next_pos()
  mm: Use folio_next_pos()

 fs/btrfs/compression.h    |  4 ++--
 fs/btrfs/defrag.c         |  7 ++++---
 fs/btrfs/extent_io.c      | 16 ++++++++--------
 fs/btrfs/file.c           |  9 +++++----
 fs/btrfs/inode.c          | 11 ++++++-----
 fs/btrfs/misc.h           |  5 -----
 fs/btrfs/ordered-data.c   |  2 +-
 fs/btrfs/subpage.c        |  5 +++--
 fs/buffer.c               |  2 +-
 fs/ext4/inode.c           | 10 +++++-----
 fs/f2fs/compress.c        |  2 +-
 fs/gfs2/aops.c            |  3 +--
 fs/iomap/buffered-io.c    | 10 ++++------
 fs/netfs/buffered_write.c |  2 +-
 fs/netfs/misc.c           |  2 +-
 fs/ocfs2/alloc.c          |  2 +-
 fs/xfs/scrub/xfarray.c    |  2 +-
 fs/xfs/xfs_aops.c         |  2 +-
 include/linux/pagemap.h   | 11 +++++++++++
 mm/shmem.c                |  2 +-
 mm/truncate.c             |  2 +-
 21 files changed, 59 insertions(+), 52 deletions(-)

-- 
2.47.2


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

end of thread, other threads:[~2025-10-31 12:12 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-24 17:08 [PATCH 00/10] Add and use folio_next_pos() Matthew Wilcox (Oracle)
2025-10-24 17:08 ` [PATCH 01/10] filemap: Add folio_next_pos() Matthew Wilcox (Oracle)
2025-10-27  7:53   ` Christoph Hellwig
2025-10-27  8:33   ` Joseph Qi
2025-10-24 17:08 ` [PATCH 02/10] btrfs: Use folio_next_pos() Matthew Wilcox (Oracle)
2025-10-30 18:14   ` David Sterba
2025-10-24 17:08 ` [PATCH 03/10] buffer: " Matthew Wilcox (Oracle)
2025-10-27  7:54   ` Christoph Hellwig
2025-10-30  9:35   ` Jan Kara
2025-10-24 17:08 ` [PATCH 04/10] ext4: " Matthew Wilcox (Oracle)
2025-10-25  3:20   ` Zhang Yi
2025-10-27  7:54   ` Christoph Hellwig
2025-10-24 17:08 ` [PATCH 05/10] f2fs: " Matthew Wilcox (Oracle)
2025-10-27 11:57   ` Chao Yu
2025-10-24 17:08 ` [PATCH 06/10] gfs2: " Matthew Wilcox (Oracle)
2025-10-24 17:08 ` [PATCH 07/10] iomap: " Matthew Wilcox (Oracle)
2025-10-24 17:10   ` Darrick J. Wong
2025-10-27  7:53   ` Christoph Hellwig
2025-10-24 17:08 ` [PATCH 08/10] netfs: " Matthew Wilcox (Oracle)
2025-10-24 17:36   ` Paulo Alcantara
2025-10-24 17:08 ` [PATCH 09/10] xfs: " Matthew Wilcox (Oracle)
2025-10-27  7:53   ` Christoph Hellwig
2025-10-24 17:08 ` [PATCH 10/10] mm: " Matthew Wilcox (Oracle)
2025-10-27  7:54   ` Christoph Hellwig
2025-10-27 15:43   ` David Hildenbrand
2025-10-27 14:16 ` [PATCH 08/10] netfs: " David Howells
2025-10-27 14:50   ` Matthew Wilcox
2025-10-31 12:12 ` [PATCH 00/10] Add and use folio_next_pos() Christian Brauner

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