F2FS Improves Zoned Block Device Support & Per-File Compression For Linux 6.9

Written by Michael Larabel in Linux Storage on 18 March 2024 at 08:29 PM EDT. 15 Comments
LINUX STORAGE
Merged today were all the Flash-Friendly File-System (F2FS) updates for the in-development Linux 6.9 kernel.

The focus this round for the flash-optimized open-source file-system were on enhancing the zoned block device support as well as addressing some per-file compression bits. F2FS maintainer Jaegeuk Kim submitted the pull request and explained:
In this round, there are a number of updates on mainly two areas: Zoned block device support and Per-file compression. For example, we've found several issues to support Zoned block device especially having large sections regarding to GC and file pinning used for Android devices. In compression side, we've fixed many corner race conditions that had broken the design assumption.

Enhancement:
- Support file pinning for Zoned block device having large section
- Enhance the data recovery after sudden power cut on Zoned block device
- Add more error injection cases to easily detect the kernel panics
- add a proc entry show the entire disk layout
- Improve various error paths paniced by BUG_ON in block allocation and GC
- support SEEK_DATA and SEEK_HOLE for compression files

Bug fix:
- fix to avoid use-after-free issue in f2fs_filemap_fault
- fix some race conditions to break the atomic write design assumption
- fix to truncate meta inode pages forcely
- resolve various per-file compression issues wrt the space management and compression policies
- fix some swap-related bugs

In addition, we removed deprecated codes such as io_bits and heap_allocation, and also fixed minor error handling routines with neat debugging messages.

See the pull request for the full list of patches now merged into Linux 6.9. A fresh Linux file-system benchmark showdown is happening soon on Phoronix.
Related News
About The Author
Michael Larabel

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