News: 0001641670

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

EXT4 Reworks Fast Commit Handling & Faster Directory Hash Computation

([Linux Storage] 4 Hours Ago EXT4 Improvements For Linux 7.2)


The EXT4 file-system improvements were merged today for [1]Linux 7.2 with some enticing optimizations.

EXT4 in Linux 7.2 brings a significant rework to its fast commit mechanism to avoid locking contention and deadlocks. EXT4 fast commits are the file-system's hybrid journaling functionality to speed up operations by recording specific delta changes to the metadata in order to avoid full metadata writes. Fast commits can be useful for lowering fsync latency and more efficient performance overall.

Li Chen reworked the fast commit code for addressing locking contention possibilities and deadlocks. For those interested in all the technical details involved can see [2]this patch series .

The other notable change is a performance optimization for directory hashing computations. The optimization is processing input in four-byte chunks and removing function pointers. Cleaning up the EXT4 str2hashbuf code reduces overhead and is delivering around a 2x improvement on longer inputs over the existing byte-by-byte approach for this function used for directory hashing computations.

These EXT4 improvements plus some fixes are all spelled out with today's [3]Git merge for Linux 7.2.



[1] https://www.phoronix.com/search/Linux+7.2

[2] https://lore.kernel.org/lkml/20260515091829.194810-1-me@linux.beauty/

[3] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=83f1454877cc292b88baf13c829c16ce6937d120



"... I should explain that I was wearing a black velvet cape that was
supposed to make me look like the dashing, romantic Zorro but which actually
made me look like a gigantic bat wearing glasses ..."
-- Dave Barry, "The Wet Zorro Suit and Other Turning
Points in l'Amour"