]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitaf093a2f6514b649650d91e785eb4940f453909a
tree105c99f81073dfe5ce3b15623491f65778bf2032
parenta1b01ba523065e2ecb1b679a4ae658665d82f227
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