linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH 0/6] ext4: make ext4_map_blocks() recognize delayed only extent
@ 2023-11-21  9:34 Zhang Yi
  2023-11-21  9:34 ` [RFC PATCH 1/6] ext4: introduce ext4_es_skip_hole_extent() to skip hole extents Zhang Yi
                   ` (5 more replies)
  0 siblings, 6 replies; 11+ messages in thread
From: Zhang Yi @ 2023-11-21  9:34 UTC (permalink / raw)
  To: linux-ext4
  Cc: tytso, adilger.kernel, jack, ritesh.list, yi.zhang, yi.zhang,
	chengzhihao1, yukuai3

From: Zhang Yi <yi.zhang@huawei.com>

Hello, guys.

I'm working on switching ext4 buffer IO from buffer_head to iomap
and enable large folio on regular file recently, this patch set is one
of a preparation of this work. It first correct the hole length returned
by ext4_map_blocks() when user query mapping type and blocks range, and
then make this function and ext4_set_iomap() are able to distinguish
delayed allocated only mapping from hole, finally cleanup the
ext4_iomap_begin_report() by the way. This preparation patch set changes
the ext4 map -> iomap converting logic in ext4_set_iomap(), so that the
later buffer IO conversion can use it. This patch set is already passed
'kvm-xfstests -g auto' tests.

Thanks,
Yi.

Zhang Yi (6):
  ext4: introduce ext4_es_skip_hole_extent() to skip hole extents
  ext4: make ext4_es_lookup_extent() return the next extent if not found
  ext4: correct the hole length returned by ext4_map_blocks()
  ext4: add a hole extent entry in cache after punch
  ext4: make ext4_map_blocks() distinguish delayed only mapping
  ext4: make ext4_set_iomap() recognize IOMAP_DELALLOC mapping type

 fs/ext4/ext4.h              |  7 ++++-
 fs/ext4/extents.c           |  5 ++--
 fs/ext4/extents_status.c    | 53 ++++++++++++++++++++++++--------
 fs/ext4/extents_status.h    |  2 ++
 fs/ext4/inode.c             | 60 ++++++++++++++++++-------------------
 include/trace/events/ext4.h | 28 +++++++++++++++++
 6 files changed, 107 insertions(+), 48 deletions(-)

-- 
2.39.2


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

end of thread, other threads:[~2023-12-15  4:36 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-21  9:34 [RFC PATCH 0/6] ext4: make ext4_map_blocks() recognize delayed only extent Zhang Yi
2023-11-21  9:34 ` [RFC PATCH 1/6] ext4: introduce ext4_es_skip_hole_extent() to skip hole extents Zhang Yi
2023-11-21  9:34 ` [RFC PATCH 2/6] ext4: make ext4_es_lookup_extent() return the next extent if not found Zhang Yi
2023-11-21  9:34 ` [RFC PATCH 3/6] ext4: correct the hole length returned by ext4_map_blocks() Zhang Yi
2023-12-13 18:21   ` Jan Kara
2023-12-14  9:18     ` Zhang Yi
2023-12-14 14:31       ` Jan Kara
2023-12-15  4:36         ` Zhang Yi
2023-11-21  9:34 ` [RFC PATCH 4/6] ext4: add a hole extent entry in cache after punch Zhang Yi
2023-11-21  9:34 ` [RFC PATCH 5/6] ext4: make ext4_map_blocks() distinguish delayed only mapping Zhang Yi
2023-11-21  9:34 ` [RFC PATCH 6/6] ext4: make ext4_set_iomap() recognize IOMAP_DELALLOC mapping type Zhang Yi

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