[PATCH v2 0/3] fat: allocate multiple clusters in fallocate

From: Matheus Alves de Almeida

Date: Mon Oct 12 2026 - 13:16:44 EST


Hi,

This series adds support for allocating multiple clusters in a single
fat_add_clusters() call in fat_fallocate().

The multi-cluster TODO in inode.c is not implemented, as doing so would
require speculative preallocation or an iomap conversion.

Changes in v2:
- Keep the directory entry path unchanged.
- Add fat_alloc_chain() for callers that only need the first cluster,
sharing the internal implementation with fat_alloc_clusters().
- Add benchmark results to the fallocate commit log.

Matheus Alves de Almeida (3):
fat: remove cluster allocation size limit
fat: support adding multiple clusters
fat: allocate multiple clusters in fallocate

fs/fat/fat.h | 3 ++-
fs/fat/fatent.c | 62 +++++++++++++++++++++++++++++++++++++------------
fs/fat/file.c | 10 ++++----
fs/fat/inode.c | 8 +++----
4 files changed, 57 insertions(+), 26 deletions(-)

--
2.43.0