linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH 0/7] Enable exfat_get_block to support obtaining multiple clusters
@ 2025-11-18  8:22 Chi Zhiling
  2025-11-18  8:22 ` [RFC PATCH 1/7] exfat: add cache option for __exfat_ent_get Chi Zhiling
                   ` (7 more replies)
  0 siblings, 8 replies; 16+ messages in thread
From: Chi Zhiling @ 2025-11-18  8:22 UTC (permalink / raw)
  To: linux-fsdevel, linux-kernel
  Cc: Alexander Viro, Christian Brauner, Jan Kara, Matthew Wilcox,
	Namjae Jeon, Sungjong Seo, Yuezhang Mo, Chi Zhiling

From: Chi Zhiling <chizhiling@kylinos.cn>

The purpose of this patchset is to prepare for adapting exfat to iomap
in the future. Currently, the main issue preventing exfat from supporting
iomap is its inability to fetch multiple contiguous clusters.

However, this patchset does not directly modify exfat_map_cluster and
exfat_get_cluster to support multi-clusters. Instead, after obtaining
the first cluster, it uses exfat_count_contig_clusters to retrieve the
subsequent contiguous clusters.

This approach is the one with the fewest changes among all the solutions
I have attempted, making the modifications easier to review.

This patchset includes two main changes: one reduces the number of sb_bread
calls when accessing adjacent clusters to save time, and the other enables
fetching multiple contiguous entries in exfat_get_blocks.

Chi Zhiling (7):
  exfat: add cache option for __exfat_ent_get
  exfat: support reuse buffer head for exfat_ent_get
  exfat: reuse cache to improve exfat_get_cluster
  exfat: improve exfat_count_num_clusters
  exfat: improve exfat_find_last_cluster
  exfat: introduce exfat_count_contig_clusters
  exfat: get mutil-clusters in exfat_get_block

 fs/exfat/cache.c    | 11 ++++--
 fs/exfat/exfat_fs.h |  6 ++-
 fs/exfat/fatent.c   | 90 ++++++++++++++++++++++++++++++++++++---------
 fs/exfat/inode.c    | 14 ++++++-
 4 files changed, 97 insertions(+), 24 deletions(-)

-- 
2.43.0


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

end of thread, other threads:[~2025-12-05 11:37 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-18  8:22 [RFC PATCH 0/7] Enable exfat_get_block to support obtaining multiple clusters Chi Zhiling
2025-11-18  8:22 ` [RFC PATCH 1/7] exfat: add cache option for __exfat_ent_get Chi Zhiling
2025-11-18  8:22 ` [RFC PATCH 2/7] exfat: support reuse buffer head for exfat_ent_get Chi Zhiling
2025-11-18  8:22 ` [RFC PATCH 3/7] exfat: reuse cache to improve exfat_get_cluster Chi Zhiling
2025-11-18  8:22 ` [RFC PATCH 4/7] exfat: improve exfat_count_num_clusters Chi Zhiling
2025-11-18  8:22 ` [RFC PATCH 5/7] exfat: improve exfat_find_last_cluster Chi Zhiling
2025-11-18  8:22 ` [RFC PATCH 6/7] exfat: introduce exfat_count_contig_clusters Chi Zhiling
2025-11-28 11:09   ` Yuezhang.Mo
2025-11-29  1:56     ` Chi Zhiling
2025-11-18  8:22 ` [RFC PATCH 7/7] exfat: get mutil-clusters in exfat_get_block Chi Zhiling
2025-11-28  2:48   ` Sungjong Seo
2025-11-28  6:18     ` Chi Zhiling
2025-12-04 12:18       ` Sungjong Seo
2025-12-05 11:36         ` Chi Zhiling
2025-11-21  1:17 ` [RFC PATCH 0/7] Enable exfat_get_block to support obtaining multiple clusters Namjae Jeon
2025-11-21  5:51   ` Chi Zhiling

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