linux/fs/exfat
Linus Torvalds a62fe21079 Description for this pull request:
- Implement FALLOC_FL_ALLOCATE_RANGE to add support for preallocating
    clusters without zeroing, helping to reduce file fragmentation.
  - Add a unified block readahead helper for FAT chain conversion, bitmap
    allocation, and directory entry lookups.
  - Optimize exfat_chain_cont_cluster() by caching buffer heads to minimize
    mark_buffer_dirty() and mirroring overhead during NO_FAT_CHAIN to
    FAT_CHAIN conversion.
  - Switch to truncate_inode_pages_final() in evict_inode() to prevent
    BUG_ON caused by shadow entries during reclaim.
  - Fix a 32-bit truncation bug in directory entry calculations by ensuring
    proper bitwise coercion.
  - Fix sb->s_maxbytes calculation to correctly reflect the maximum possible
    volume size for a given cluster size, resolving xfstests generic/213.
  - Introduced exfat_cluster_walk() helper to traverse FAT chains by
    a specified step, handling both ALLOC_NO_FAT_CHAIN and ALLOC_FAT_CHAIN
    modes.
  - Introduced exfat_chain_advance() helper to advance an exfat_chain
    structure, updating both the current cluster and remaining size.
  - Remove dead assignments and fix Smatch warnings.
 -----BEGIN PGP SIGNATURE-----
 
 iQJKBAABCgA0FiEE6NzKS6Uv/XAAGHgyZwv7A1FEIQgFAmnbHMUWHGxpbmtpbmpl
 b25Aa2VybmVsLm9yZwAKCRBnC/sDUUQhCHXZEACDyb7s63to6V0tdry1D+/Q0hrX
 blgUDnD+oGM5J+rFsvmfU+GhUJhe3hIgvLReUpBzrjegdVXCc6wBn+pBzQkjq81A
 emJOIjOzyTgwusLuneSMGBZ3oCBJDiREGWqFeoeV1IHZoXvL4oqVr11V4b+8l2ms
 Y2FqMljg8AYsgD/Wf3nXPJ1kph/5qpxeKQB4O1RIMEqJp5uoU0byDAtJSjde7oKy
 cBRyYeGxcJ0UkQNX3pOfJHe2+Hb2wvCOPWpZ7fw4OfsOYcJMM7IFEKoT2tH67sx9
 fo3J/Q74A2Gd0pwyWUwX2xK70uSkoLCR6TxInIgLaKK2IHmgpSHUJa+F5Nz9QFED
 PDsBMedt38QXlI4jHNfYTIZuFXgFpIuDJyiphX7tQ72n+JVTiWNnKEF9mRRpRzZ+
 2AV6h6YXN0Sd4/EJts+hf1S5admwEKNYpaBXgNTUBD/BbUQcKmvw8JQNk5/tYjU4
 9jr4ab1jj1tvWtw9r2Ceu/W71W3l+Ys8gxcJB2DJB1vvo9h23NyHoNwnBMAwmNRv
 5ykE7LFFHzwt8QUTMiGlMy5NFpd9cwcVKjzXd+Iogxqa1pDW/lFXrEYxzfvsqPwo
 cBNIu2hUf2ESqctAmOWbpCRZwSWMQjh7cUwIHPqNcG2f3JMCzxxVlQC6SUJYr1qv
 LoSPVMnQU/ReqFfK6w==
 =JG0E
 -----END PGP SIGNATURE-----

Merge tag 'exfat-for-7.1-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/linkinjeon/exfat

Pull exfat updates from Namjae Jeon:

 - Implement FALLOC_FL_ALLOCATE_RANGE to add support for preallocating
   clusters without zeroing, helping to reduce file fragmentation

 - Add a unified block readahead helper for FAT chain conversion, bitmap
   allocation, and directory entry lookups

 - Optimize exfat_chain_cont_cluster() by caching buffer heads to
   minimize mark_buffer_dirty() and mirroring overhead during
   NO_FAT_CHAIN to FAT_CHAIN conversion

 - Switch to truncate_inode_pages_final() in evict_inode() to prevent
   BUG_ON caused by shadow entries during reclaim

 - Fix a 32-bit truncation bug in directory entry calculations by
   ensuring proper bitwise coercion

 - Fix sb->s_maxbytes calculation to correctly reflect the maximum
   possible volume size for a given cluster size, resolving xfstests
   generic/213

 - Introduced exfat_cluster_walk() helper to traverse FAT chains by a
   specified step, handling both ALLOC_NO_FAT_CHAIN and ALLOC_FAT_CHAIN
   modes

 - Introduced exfat_chain_advance() helper to advance an exfat_chain
   structure, updating both the current cluster and remaining size

 - Remove dead assignments and fix Smatch warnings

* tag 'exfat-for-7.1-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/linkinjeon/exfat:
  exfat: use exfat_chain_advance helper
  exfat: introduce exfat_chain_advance helper
  exfat: remove NULL cache pointer case in exfat_ent_get
  exfat: use exfat_cluster_walk helper
  exfat: introduce exfat_cluster_walk helper
  exfat: fix incorrect directory checksum after rename to shorter name
  exfat: fix s_maxbytes
  exfat: fix passing zero to ERR_PTR() in exfat_mkdir()
  exfat: fix error handling for FAT table operations
  exfat: optimize exfat_chain_cont_cluster with cached buffer heads
  exfat: drop redundant sec parameter from exfat_mirror_bh
  exfat: use readahead helper in exfat_get_dentry
  exfat: use readahead helper in exfat_allocate_bitmap
  exfat: add block readahead in exfat_chain_cont_cluster
  exfat: add fallocate FALLOC_FL_ALLOCATE_RANGE support
  exfat: Fix bitwise operation having different size
  exfat: Drop dead assignment of num_clusters
  exfat: use truncate_inode_pages_final() at evict_inode()
2026-04-13 16:57:31 -07:00
..
balloc.c exfat: use readahead helper in exfat_allocate_bitmap 2026-03-05 21:09:00 +09:00
cache.c exfat: support multi-cluster for exfat_get_cluster 2026-02-12 21:21:51 +09:00
dir.c exfat: use exfat_chain_advance helper 2026-04-03 22:41:10 +09:00
exfat_fs.h exfat: introduce exfat_chain_advance helper 2026-04-03 22:41:08 +09:00
exfat_raw.h exfat: fix s_maxbytes 2026-03-31 23:01:07 +09:00
fatent.c exfat: remove NULL cache pointer case in exfat_ent_get 2026-04-03 22:41:07 +09:00
file.c Description for this pull request: 2026-04-13 16:57:31 -07:00
inode.c Description for this pull request: 2026-04-13 16:57:31 -07:00
Kconfig fs: add CONFIG_BUFFER_HEAD 2023-08-02 09:13:09 -06:00
Makefile exfat: add Kconfig and Makefile 2020-03-05 21:00:40 -05:00
misc.c exfat: fix error handling for FAT table operations 2026-03-05 21:09:35 +09:00
namei.c exfat: use exfat_chain_advance helper 2026-04-03 22:41:10 +09:00
nls.c exfat: fix out-of-bounds in exfat_nls_to_ucs2() 2025-10-15 17:53:20 +09:00
super.c exfat: fix s_maxbytes 2026-03-31 23:01:07 +09:00