]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Btrfs: add free space tree mount option
authorOmar Sandoval <osandov@fb.com>
Wed, 30 Sep 2015 03:50:38 +0000 (20:50 -0700)
committerShan Hai <shan.hai@oracle.com>
Wed, 23 Aug 2017 05:27:29 +0000 (13:27 +0800)
commitfee444f27e203270492062728cae576a31109a66
treeba22cc709efefbd9d11ac972c642799af262211d
parentc952bda1cb64993b30904018c06999f668d3d654
Btrfs: add free space tree mount option

Now we can finally hook up everything so we can actually use free space
tree. The free space tree is enabled by passing the space_cache=v2 mount
option. On the first mount with the this option set, the free space tree
will be created and the FREE_SPACE_TREE read-only compat bit will be
set. Any time the filesystem is mounted from then on, we must use the
free space tree. The clear_cache option will also clear the free space
tree.

Signed-off-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Chris Mason <clm@fb.com>
Orabug: 26274676

(cherry picked from commit 70f6d82ec73c3ae2d3adc6853c5bebcd73610097)
Signed-off-by: Shan Hai <shan.hai@oracle.com>
Reviewed-by: Somasundaram Krishnasamy <somasundaram.krishnasamy@oracle.com>
fs/btrfs/ctree.h
fs/btrfs/disk-io.c
fs/btrfs/super.c