Skip to content

Enable multi-cluster fetching for exfat_get_block.

Chi Zhiling linux-fsdevel lkml 3 versions – Applied

Status from this message: Applied them to #dev with Yuezhang reviewed-by tag.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest13 patches 2 repliesApplied
  2. v213 patches 4 repliesSuperseded
  3. v19 patches 0 repliesSuperseded

Changes in v3 from the cover letter

- fix overflow in exfat_get_block, only patch 10 and 13 changed
- add review tag for all patches except patch 10 and 13

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/13exfat: add cache option for __exfat_ent_getfs/exfat/fatent.c+13 -70 replies
2/13exfat: support reuse buffer head for exfat_ent_getfs/exfat/cache.c fs/exfat/exfat_fs.h fs/exfat/fatent.c+27 -180 replies
3/13exfat: improve exfat_count_num_clustersfs/exfat/fatent.c+3 -10 replies
4/13exfat: improve exfat_find_last_clusterfs/exfat/fatent.c+3 -10 replies
5/13exfat: remove the check for infinite cluster chain loopfs/exfat/cache.c+0 -100 replies
6/13exfat: remove the unreachable warning for cache miss casesfs/exfat/cache.c+1 -120 replies
7/13exfat: reduce the number of parameters for exfat_get_cluster()fs/exfat/cache.c fs/exfat/exfat_fs.h fs/exfat/inode.c+11 -240 replies
8/13exfat: reuse cache to improve exfat_get_clusterfs/exfat/cache.c+3 -10 replies
9/13exfat: remove handling of non-file types in exfat_map_clusterfs/exfat/inode.c+1 -170 replies
10/13exfat: support multi-cluster for exfat_map_clusterfs/exfat/inode.c+17 -130 replies
11/13exfat: tweak cluster cache to support zero offsetfs/exfat/cache.c+2 -20 replies
12/13exfat: return the start of next cache in exfat_cache_lookupfs/exfat/cache.c+37 -120 replies
13/13exfat: support multi-cluster for exfat_get_clusterfs/exfat/cache.c fs/exfat/exfat_fs.h fs/exfat/inode.c+53 -80 replies

Reviews trailers per patch

11 of 13 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchYuezhang Mo
SeriesR-b
1/13R-b
2/13R-b
3/13R-b
4/13R-b
5/13R-b
6/13R-b
7/13R-b
8/13R-b
9/13R-b
10/13
11/13R-b
12/13R-b
13/13

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 00/13] Enable multi-cluster fetching for exfat_get_block.

From: Chi Zhiling <[email protected]>

This patch series significantly improves exFAT read performance by adding multi-cluster mapping support.
The changes reduce get_block calls during sequential reads, particularly benefiting small cluster sizes.

- Extends exfat_get_cluster() and exfat_map_cluster() to handle multiple contiguous clusters
- Adds buffer head caching for FAT table reads

Performance results show ~10% improvement for 512-byte clusters (454->511 MB/s) and reduced get_block overhead from 10.8% to 0.02% for NO_FAT_CHAIN files.

All criticism and suggestions are welcome :)

Changes in v3:
- fix overflow in exfat_get_block, only patch 10 and 13 changed
- add review tag for all patches except patch 10 and 13

Changes in v2:
- Cache the last dis-continuous cluster
- Continue collect clusters after cache hit
- Some cleanup.

V2:
https://lore.kernel.org/linux-fsdevel/[email protected]/T/#u
V1:
https://lore.kernel.org/linux-fsdevel/[email protected]/T/#u
rfc:
https://lore.kernel.org/linux-fsdevel/[email protected]/T/#u

Chi Zhiling (13):
exfat: add cache option for __exfat_ent_get
exfat: support reuse buffer head for exfat_ent_get
exfat: improve exfat_count_num_clusters
exfat: improve exfat_find_last_cluster
exfat: remove the check for infinite cluster chain loop
exfat: remove the unreachable warning for cache miss cases
exfat: reduce the number of parameters for exfat_get_cluster()
exfat: reuse cache to improve exfat_get_cluster
exfat: remove handling of non-file types in exfat_map_cluster
exfat: support multi-cluster for exfat_map_cluster
exfat: tweak cluster cache to support zero offset
exfat: return the start of next cache in exfat_cache_lookup
exfat: support multi-cluster for exfat_get_cluster

 fs/exfat/cache.c    | 149 ++++++++++++++++++++++++++++----------------
 fs/exfat/exfat_fs.h |   7 +--
 fs/exfat/fatent.c   |  61 +++++++++++-------
 fs/exfat/inode.c    |  52 ++++++----------
 4 files changed, 157 insertions(+), 112 deletions(-)
Signature · 1 line
2.43.0