diff options
author | Ilya Dryomov <idryomov@gmail.com> | 2012-03-27 10:09:17 -0400 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2012-03-27 10:09:17 -0400 |
commit | 0c460c0d70e10463e44bdf1d406e9c5ec03b1af6 (patch) | |
tree | 8c28962481b64a3dcabb2294094435832a23516d /fs/btrfs/extent-tree.c | |
parent | e8920a640be5d4ebe3fee0670639a81d4ffc904c (diff) |
Btrfs: move alloc_profile_is_valid() to volumes.c
Header file is not a good place to define functions. This also moves a
call to alloc_profile_is_valid() down the stack and removes a redundant
check from __btrfs_alloc_chunk() - alloc_profile_is_valid() takes it
into account.
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, 0 insertions, 2 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index 8c5bd8fa8245..304710cae653 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c | |||
@@ -3400,8 +3400,6 @@ static int do_chunk_alloc(struct btrfs_trans_handle *trans, | |||
3400 | int wait_for_alloc = 0; | 3400 | int wait_for_alloc = 0; |
3401 | int ret = 0; | 3401 | int ret = 0; |
3402 | 3402 | ||
3403 | BUG_ON(!alloc_profile_is_valid(flags, 0)); | ||
3404 | |||
3405 | space_info = __find_space_info(extent_root->fs_info, flags); | 3403 | space_info = __find_space_info(extent_root->fs_info, flags); |
3406 | if (!space_info) { | 3404 | if (!space_info) { |
3407 | ret = update_space_info(extent_root->fs_info, flags, | 3405 | ret = update_space_info(extent_root->fs_info, flags, |