Bcachefs Might Be Ready For Upstreaming In Linux This Year

Written by Michael Larabel in Linux Storage on 16 February 2022 at 05:36 AM EST. 46 Comments
The Bcachefs file-system that was born out of the Linux kernel's block cache code has over the past few years matured greatly. Now in 2022 the core fundamentals of the file-system are "pretty close to done" and will hopefully be mainlined this calendar year into the Linux kernel.

Bcachefs has been in development since the mid-2010s and aims for speed while having ZFS/Btrfs-like features. It's been under heavy feature development and with time picking up features such as Btrfs-like snapshots or referred to as bad@$$ snapshots, among other promising feature work to allow it to compete as a next-gen file-system.

Lead Bcachefs developer Kent Overstreet posted this morning an update on the LKML about the state of this open-source file-system:
It's been a long road going from bcache, and starting with what was essentially a prototype for a new filesystem, and turning it into a real (scalable, robust, full featured) filesystem.

Over the past few years, we've added reflink, subvolumes and snapshots. I'm particularly proud of how snapshots turned out - it's roughly a versioned btree approach, and it's scalable and fast, even fsck is O(number of keys of metadata), not O(number of snapshots). I've got it up to a million snapshots in a test VM.

The bigger thing though is that the core fundamentals are pretty close to done - replacing all the "periodically walk the world" algorigthms with real persistent data structures that scale. A big allocator rewrite is about to land, and after that will be backpointers - to fix copygc scanning.

Things are in flux lately with all the allocator work, but I'm hoping once that settles down and I've worked through the backlog of bug reports and performance regressions, we might be ready for upstreaming sometime this year...

Here's to hoping that Bcachefs will successfully mature to a state of readiness for mainlining in the Linux kernel in 2022, which should help in expanding the pool of testers of the file-system and allow the file-system to better prove itself.
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