xfs-relogging · shipping · also XFS re-logging

XFS relogging

XFS relogging writes the accumulated, still unwritten changes of an object again in a newer transaction so that the object moves forward in the log.

Each new transaction for a relogged object carries a new copy of all its changes that so far exist only in the log, under a higher log sequence number. Once the object itself is written to disk, the next change starts a fresh aggregate. [1]

Rolling transactions relog held items so they do not obstruct their own log-space progress. Extent removal, for example, can free only 2 extents per transaction because of reservation limits, so the inode and btree buffers are relogged at every step and the operation is not blocked by itself when the log wraps around. [1]

In the active item list, a relogged item is removed and reinserted at its new LSN, and moving the first item advances the log tail. Background pushing tries to keep 25% of the log free. Relogging is not home writeback and is not an application durability barrier. [2] [1]

Relations

related
XFS delayed logging, XFS Committed Item List, XFS Active Item List, Log sequence number, XFS rolling transaction, XFS intent log item, XFS

Advantages

  • A changed object need not be written to disk before its next change can be logged. [1]

Limitations

  • Objects tend to get dirtier as they are relogged, so each later transaction writes more metadata into the log. [1]

Citations

  1. Linux v6.16: XFS Logging Design, log space accounting and re-logging (accessed 2026-10-22)
  2. Linux v6.16: xfs_trans_ail.c, ordered item movement and log-tail updates (accessed 2026-10-22)

Further reading

  1. Hesela: XFS delayed logging and commit boundaries (accessed 2026-10-16)
Sources & caveats
  • design is the Linux v6.16 XFS Logging Design document, read in the sections on rolling transactions, re-logging and delayed logging concepts.
  • ail-code is xfs_trans_ail.c at v6.16, read in the bulk update, minimum LSN and push target functions.
  • 2 extents per transaction comes from design. 25% free log space and the tail update on moving the first item come from ail-code.

JSON: /data/terms/xfs-relogging.json

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. XFS relogging. Hesela. 2026-10-24. https://hesela.dev/terms/xfs-relogging/