diff options
author | Ilya Dryomov <idryomov@gmail.com> | 2012-01-16 15:04:47 -0500 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2012-01-16 15:04:47 -0500 |
commit | 6fef8df1dcb9b586268caff66df1d71ce8610132 (patch) | |
tree | 03488bc99771dda6354a3cb3113bee96f55aac47 /fs/btrfs/volumes.c | |
parent | 08c422c27f855d27b0b3d9fa30ebd938d4ae6f1f (diff) |
Btrfs: get rid of *_alloc_profile fields
{data,metadata,system}_alloc_profile fields have been unused for a long
time now. Get rid of them.
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'fs/btrfs/volumes.c')
-rw-r--r-- | fs/btrfs/volumes.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index f4b839fd3c9d..89096f6d6fb4 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c | |||
@@ -2752,8 +2752,7 @@ static noinline int init_first_rw_device(struct btrfs_trans_handle *trans, | |||
2752 | return ret; | 2752 | return ret; |
2753 | 2753 | ||
2754 | alloc_profile = BTRFS_BLOCK_GROUP_METADATA | | 2754 | alloc_profile = BTRFS_BLOCK_GROUP_METADATA | |
2755 | (fs_info->metadata_alloc_profile & | 2755 | fs_info->avail_metadata_alloc_bits; |
2756 | fs_info->avail_metadata_alloc_bits); | ||
2757 | alloc_profile = btrfs_reduce_alloc_profile(root, alloc_profile); | 2756 | alloc_profile = btrfs_reduce_alloc_profile(root, alloc_profile); |
2758 | 2757 | ||
2759 | ret = __btrfs_alloc_chunk(trans, extent_root, &map, &chunk_size, | 2758 | ret = __btrfs_alloc_chunk(trans, extent_root, &map, &chunk_size, |
@@ -2763,8 +2762,7 @@ static noinline int init_first_rw_device(struct btrfs_trans_handle *trans, | |||
2763 | sys_chunk_offset = chunk_offset + chunk_size; | 2762 | sys_chunk_offset = chunk_offset + chunk_size; |
2764 | 2763 | ||
2765 | alloc_profile = BTRFS_BLOCK_GROUP_SYSTEM | | 2764 | alloc_profile = BTRFS_BLOCK_GROUP_SYSTEM | |
2766 | (fs_info->system_alloc_profile & | 2765 | fs_info->avail_system_alloc_bits; |
2767 | fs_info->avail_system_alloc_bits); | ||
2768 | alloc_profile = btrfs_reduce_alloc_profile(root, alloc_profile); | 2766 | alloc_profile = btrfs_reduce_alloc_profile(root, alloc_profile); |
2769 | 2767 | ||
2770 | ret = __btrfs_alloc_chunk(trans, extent_root, &sys_map, | 2768 | ret = __btrfs_alloc_chunk(trans, extent_root, &sys_map, |