diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/btrfs/extent-tree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index 6540095544e8..a589912fdd51 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c | |||
@@ -1727,7 +1727,7 @@ int btrfs_alloc_extent(struct btrfs_trans_handle *trans, | |||
1727 | data = BTRFS_BLOCK_GROUP_METADATA | alloc_profile; | 1727 | data = BTRFS_BLOCK_GROUP_METADATA | alloc_profile; |
1728 | } | 1728 | } |
1729 | again: | 1729 | again: |
1730 | if (root != root->fs_info->extent_root) { | 1730 | if (root->ref_cows) { |
1731 | if (!(data & BTRFS_BLOCK_GROUP_METADATA)) { | 1731 | if (!(data & BTRFS_BLOCK_GROUP_METADATA)) { |
1732 | ret = do_chunk_alloc(trans, root->fs_info->extent_root, | 1732 | ret = do_chunk_alloc(trans, root->fs_info->extent_root, |
1733 | 2 * 1024 * 1024, | 1733 | 2 * 1024 * 1024, |