]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
exfat: add support for multi-cluster allocation
authorNamjae Jeon <linkinjeon@kernel.org>
Thu, 7 May 2026 00:05:08 +0000 (09:05 +0900)
committerNamjae Jeon <linkinjeon@kernel.org>
Mon, 15 Jun 2026 10:55:42 +0000 (19:55 +0900)
commit286ae368871d2a93b68148c7684b8cff63c9ba80
tree13911073bfd05530391f55ab41d824a291e900fe
parenta095c12ef13156cc86de858c8d127f24895e2d6e
exfat: add support for multi-cluster allocation

Currently exfat_map_cluster() allocates and returns only one cluster
at a time even when more clusters are needed. This causes multiple
FAT walks and repeated allocation calls during large sequential writes
or when using iomap for writes. This change exfat_map_cluster() and
exfat_alloc_cluster() to be able to allocate multiple contiguous
clusters.

Acked-by: Christoph Hellwig <hch@lst.de>
Acked-by: "Darrick J. Wong" <djwong@kernel.org>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
fs/exfat/dir.c
fs/exfat/exfat_fs.h
fs/exfat/fatent.c
fs/exfat/file.c
fs/exfat/inode.c
fs/exfat/namei.c