diff options
author | Chris Mason <clm@fb.com> | 2015-12-30 07:52:35 -0800 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2015-12-30 07:52:35 -0800 |
commit | 511711af91f21d80b27f18b569352d6896562828 (patch) | |
tree | 105c99f81073dfe5ce3b15623491f65778bf2032 /fs/btrfs/ctree.h | |
parent | b4570aa994b8fdb3a9c04ed80a6cac69072d4d42 (diff) | |
download | lwn-511711af91f21d80b27f18b569352d6896562828.tar.gz lwn-511711af91f21d80b27f18b569352d6896562828.zip |
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>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r-- | fs/btrfs/ctree.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index d79ba0570c55..9a88d0c69be4 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h @@ -1856,6 +1856,8 @@ struct btrfs_fs_info { * and will be latter freed. Protected by fs_info->chunk_mutex. */ struct list_head pinned_chunks; + + int creating_free_space_tree; }; struct btrfs_subvolume_writers { |