close

Linux 7.2-rc7 Restoring Btrfs Fixup Worker Infrastructure To Address Silent Data Loss

Written by Michael Larabel in Linux Storage on 6 August 2026 at 05:09 PM EDT. 18 Comments
LINUX STORAGE
Back during the Linux 7.2 merge window the Btrfs file-system dropped its COW fixup mechanism, which was used to detect dirty pages without an ordered extent. This code was removed as it was believed the kernel's memory management layer had solved the underlying conditions but in reality it ended up leading to silent data loss. That Btrfs fixup worker infrastructure is now restored in time for Linux 7.2-rc7 this weekend and the stable v7.2 kernel later this month.

SUSE's David Sterba sent in a pull request today dedicated to bringing back the fixup worker infrastructure. It's a big change for late in the kernel cycle with restoring 600+ lines of feature code, but as Sterba noted without it can lead to silent data loss in current conditions:
"this pull request brings back the fixup worker infrastructure. It's a mechanism to detect pages/folios that are marked dirty without filesystem knowledge and require COW fixup. The consequence of not doing so is silent data loss.

The first patch covers the scenarios in detail, also reflecting folio API port and subpage block size support added in recent years. The original fixup worker was only for pages.

The patch is relatively big, half of the code is debugging and support code, the rest is the core design around the detection and fix."

Linus Torvalds has already honored the pull request with the restored infrastructure now in Linux Git.

There was a separate pull request today as well containing the other Btrfs fixes for the week. That Btrfs pull landed a fix for a leak in the encoded ioctl write, disabling large folios on systems with highmem, and disabling block size greater than page size support for systems without transparent hugepage (THP) support.
Related News
About The Author

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week