Ext4 fast commit
Ext4 fast commit is a journaling mechanism that records metadata deltas for eligible updates instead of a full traditional metadata-block commit.
Linux v6.12 describes this for ordered mode, with fallback to full commits. [2] Replay targets recorded outcomes rather than blindly repeating procedures; the implementation also documents hardening work, so the design rationale is not a correctness certification. [3] See the explicitly synthetic interrupted-recovery model. [4] In the audited v6.16 ext4_fc_submit_bh path, a barrier-enabled tail requests both REQ_PREFLUSH and REQ_FUA; do not infer zero device flushes from compact records. [5]
Replay allocation: a bitmap-free block can already belong to a logged extent. Linux v6.12 scans ADD_RANGE records and advances the accepted region count only at a tail with matching transaction ID and CRC. Its replay-only allocator skips excluded candidates. Bytes after the last accepted tail do not automatically extend that region count. [6] [7] A finite constructed example supplies tail validity and does not parse a journal. Its downloadable results include the inputs and generator hash. [8]
Relations
- related
- iJournaling, Journal checkpoint, Journal revoke record, Crash consistency, Persistence ordering, Logical journaling, Physical journaling, Storage cache flush, Force Unit Access, Storage latency, Ext4 ordered mode, Ext4
Limitations
- Lower mean fsync latency need not imply a lower p99; the ATC 2024 paper reports the opposite trade-off in its NFS Varmail experiment, attributed to fallback full commits. [1]
- The cited Linux v6.12 mechanism and explanatory model do not certify a deployed kernel or storage stack. [4]
Citations
- Shirwadkar, Kadekodi and Tso. FastCommit. USENIX ATC 2024, section 6.1 and Figure 12, pp. 165-166.
- Linux v6.12: ext4 Journal (jbd2), layout and fast commits
- Linux v6.12: fs/ext4/fast_commit.c, replay idempotence and stated limitations
- Hesela: Ext4 journal replay, revocation and repeatable recovery
- Linux v6.16: ext4_fc_submit_bh
- Linux v6.12 fast_commit.c: accepted-tail range boundary and replay exclusions
- Linux v6.12 mballoc.c: replay-only allocator and excluded candidates
- Hesela: constructed replay-allocation example, supplied tail validity and explicit limits
Sources & caveats
- The allocation explanation covers pinned Linux v6.12 source, not execution of a kernel or a correctness assessment of current releases.