btrfs: don't run delayed references while we are creating the free space tree
authorChris Mason <clm@fb.com>
Wed, 30 Dec 2015 15:52:35 +0000 (07:52 -0800)
committerChris Mason <clm@fb.com>
Wed, 30 Dec 2015 15:52:35 +0000 (07:52 -0800)
commit511711af91f21d80b27f18b569352d6896562828
tree105c99f81073dfe5ce3b15623491f65778bf2032
parentb4570aa994b8fdb3a9c04ed80a6cac69072d4d42
btrfs: don't run delayed references while we are creating the free space tree

This is a short term solution to make sure btrfs_run_delayed_refs()
doesn't change the extent tree while we are scanning it to create the
free space tree.

Longer term we need to synchronize scanning the block groups one by one,
similar to what happens during a balance.

Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/ctree.h
fs/btrfs/disk-io.c
fs/btrfs/extent-tree.c
fs/btrfs/free-space-tree.c