{
  "slug": "ext4-fast-commit",
  "term": "Ext4 fast commit",
  "aliases": [
    "Ext4 fast-commit journaling"
  ],
  "definition": "Ext4 fast commit is a journaling mechanism that records metadata deltas for eligible updates instead of a full traditional metadata-block commit.",
  "note": "Linux v6.12 describes this for ordered mode, with fallback to full commits. [journal] Replay targets recorded outcomes rather than blindly repeating procedures; the implementation also documents hardening work, so the design rationale is not a correctness certification. [fast] See the explicitly synthetic interrupted-recovery model. [hesela] 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. [tail]\n\nReplay 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. [fc-allocation-scan] [fc-allocation-allocator] A finite constructed example supplies tail validity and does not parse a journal. Its downloadable results include the inputs and generator hash. [fc-allocation-example]",
  "status": "shipping",
  "advantages": [],
  "limitations": [
    {
      "text": "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.",
      "citationIds": [
        "fastcommit-paper"
      ]
    },
    {
      "text": "The cited Linux v6.12 mechanism and explanatory model do not certify a deployed kernel or storage stack.",
      "citationIds": [
        "hesela"
      ]
    }
  ],
  "related": [
    "ijournaling",
    "journal-checkpoint",
    "journal-revoke-record",
    "crash-consistency",
    "persistence-ordering",
    "logical-journaling",
    "physical-journaling",
    "cache-flush",
    "force-unit-access",
    "latency-storage",
    "ext4-data-ordered",
    "ext4"
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "citations": [
    {
      "id": "fastcommit-paper",
      "title": "Shirwadkar, Kadekodi and Tso. FastCommit. USENIX ATC 2024, section 6.1 and Figure 12, pp. 165-166.",
      "url": "https://www.usenix.org/system/files/atc24-shirwadkar.pdf",
      "accessed": "2026-10-15"
    },
    {
      "id": "journal",
      "title": "Linux v6.12: ext4 Journal (jbd2), layout and fast commits",
      "url": "https://github.com/torvalds/linux/blob/v6.12/Documentation/filesystems/ext4/journal.rst",
      "accessed": "2026-10-14"
    },
    {
      "id": "fast",
      "title": "Linux v6.12: fs/ext4/fast_commit.c, replay idempotence and stated limitations",
      "url": "https://github.com/torvalds/linux/blob/v6.12/fs/ext4/fast_commit.c",
      "accessed": "2026-10-14"
    },
    {
      "id": "hesela",
      "title": "Hesela: Ext4 journal replay, revocation and repeatable recovery",
      "url": "https://hesela.com/analyses/ext4-journal-replay-revocation/",
      "accessed": "2026-10-14"
    },
    {
      "id": "tail",
      "title": "Linux v6.16: ext4_fc_submit_bh",
      "url": "https://github.com/torvalds/linux/blob/v6.16/fs/ext4/fast_commit.c#L664-L676",
      "accessed": "2026-10-15"
    },
    {
      "id": "fc-allocation-scan",
      "title": "Linux v6.12 fast_commit.c: accepted-tail range boundary and replay exclusions",
      "url": "https://github.com/torvalds/linux/blob/adc218676eef25575469234709c2d87185ca223a/fs/ext4/fast_commit.c#L1872-L2055",
      "accessed": "2026-11-28"
    },
    {
      "id": "fc-allocation-allocator",
      "title": "Linux v6.12 mballoc.c: replay-only allocator and excluded candidates",
      "url": "https://github.com/torvalds/linux/blob/adc218676eef25575469234709c2d87185ca223a/fs/ext4/mballoc.c#L5697-L5783",
      "accessed": "2026-11-28"
    },
    {
      "id": "fc-allocation-example",
      "title": "Hesela: constructed replay-allocation example, supplied tail validity and explicit limits",
      "url": "https://hesela.dev/research/ext4-replay-allocation/results.json",
      "accessed": "2026-11-28"
    }
  ],
  "updated": "2026-11-28",
  "provenance": [
    "The allocation explanation covers pinned Linux v6.12 source, not execution of a kernel or a correctness assessment of current releases."
  ]
}
