]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: fix mount -o clear_cache,space_cache=v2
authorOmar Sandoval <osandov@fb.com>
Fri, 23 Sep 2016 00:24:21 +0000 (17:24 -0700)
committerDavid Sterba <dsterba@suse.com>
Mon, 3 Oct 2016 16:52:14 +0000 (18:52 +0200)
commite11a78d01f8d95a95b2314da93eb9566649bf01a
treea8da56fb110420e2d352fd244f63210db85f782b
parent0ecc7f475a41f71c5580089c0b730657cda1d6ba
Btrfs: fix mount -o clear_cache,space_cache=v2

We moved the code for creating the free space tree the first time that
it's enabled, but didn't move the clearing code along with it. This
breaks my (undocumented) intention that `mount -o
clear_cache,space_cache=v2` would clear the free space tree and then
recreate it.

Fixes: af093a2f6514 ("btrfs: don't run delayed references while we are creating the free space tree")
Cc: stable@vger.kernel.org # 4.5+
Tested-by: Holger Hoffstätte <holger@applied-asynchrony.com>
Tested-by: Chandan Rajendra <chandan@linux.vnet.ibm.com>
Signed-off-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/disk-io.c