aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-04-26 11:03:32 -0400
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:04:02 -0400
commit3bf3d9e9c256e1a249a47bb8ceff682e6430aeff (patch)
tree8caf8e63b3c053f92b0a61a83e1bf8f8186e3b7a /fs
parent8f18cf13396caae5a3d7ae91201cfb15181a9642 (diff)
Btrfs: Avoid recursive chunk allocations
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/btrfs/extent-tree.c2
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 }
1729again: 1729again:
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,