mbox series

[0/2] btrfs: free space tree mounting fixes

Message ID cover.1599164377.git.boris@bur.io (mailing list archive)
Headers show
Series btrfs: free space tree mounting fixes | expand

Message

Boris Burkov Sept. 3, 2020, 8:33 p.m. UTC
A couple fixes for issues with mounting the btrfs free space tree
(aka space_cache v2). These are not dependent, and are only related
loosely, in that they both apply to mounting the file system with
the free space tree.

The first patch fixes -o remount,space_cache=v2.

The second patch fixes the slight oversight of not cleaning up the
space cache free space object or free space inodes when migrating to
the free space tree.

Boris Burkov (2):
  btrfs: support remount of ro fs with free space tree
  btrfs: remove free space items when creating free space tree

 fs/btrfs/block-group.c      | 42 ++++---------------------------
 fs/btrfs/free-space-cache.c | 49 ++++++++++++++++++++++++++++++++++++-
 fs/btrfs/free-space-cache.h |  2 ++
 fs/btrfs/free-space-tree.c  |  3 +++
 fs/btrfs/super.c            | 17 +++++++++++++
 5 files changed, 75 insertions(+), 38 deletions(-)