diff options
author | Ilya Dryomov <idryomov@gmail.com> | 2012-01-16 15:04:48 -0500 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2012-01-16 15:04:48 -0500 |
commit | 70922617b0099f420deceb53d5dc7f4fb30d08d0 (patch) | |
tree | 6353dff7355863b92b48001e76c3f00bf180916b /fs/btrfs/extent-tree.c | |
parent | ea67176ae8c024f64d85ec33873e5eadf1af7247 (diff) |
Btrfs: do not reduce profile in do_chunk_alloc()
Every caller of do_chunk_alloc() feeds it the reduced allocation
profile, so stop trying to reduce it one more time. Instead check the
validity of the passed profile.
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'fs/btrfs/extent-tree.c')
-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 946b0671c5d9..a1a18ea7b6c6 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c | |||
@@ -3295,7 +3295,7 @@ static int do_chunk_alloc(struct btrfs_trans_handle *trans, | |||
3295 | int wait_for_alloc = 0; | 3295 | int wait_for_alloc = 0; |
3296 | int ret = 0; | 3296 | int ret = 0; |
3297 | 3297 | ||
3298 | flags = btrfs_reduce_alloc_profile(extent_root, flags); | 3298 | BUG_ON(!profile_is_valid(flags, 0)); |
3299 | 3299 | ||
3300 | space_info = __find_space_info(extent_root->fs_info, flags); | 3300 | space_info = __find_space_info(extent_root->fs_info, flags); |
3301 | if (!space_info) { | 3301 | if (!space_info) { |