XFS Real-Time Enables FITRIM Support With Linux 6.11

Written by Michael Larabel in Linux Storage on 18 July 2024 at 06:12 AM EDT. 5 Comments
LINUX STORAGE
The XFS file-system updates have been merged for the in-development Linux 6.11 kernel.

While XFS itself has supported TRIM/DISCARD for the past decade, only now with the Linux 6.11 kernel is the FITRIM ioctl for batched discard being wired up for XFS' real-time device support. When making use of XFS real-time sub-volume support "XFS_RT", FITRIM for discard is now correctly wired up with the Linux 6.11 kernel. Darrick Wong explained batch on the patch series implementing it:
"One thing that's been missing for a long time is the ability to tell underlying storage that it can unmap the unused space on the realtime device. This short series exposes this functionality through FITRIM. Callers that want ranged FITRIM should be aware that the realtime space exists in the offset range after the data device. However, it is anticipated that most callers pass in offset=0 len=-1ULL and will not notice or care."

The XFS changes in Linux 6.11 also include adding byte-based grant head log reservation tracking, various code clean-ups, and other fixes. More details for those interested via the XFS merge.
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