diff options
-rw-r--r-- | fs/btrfs/extent-tree.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index df754108b952..a541bc87f04c 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c | |||
@@ -3607,18 +3607,14 @@ struct btrfs_block_rsv *btrfs_alloc_block_rsv(struct btrfs_root *root) | |||
3607 | { | 3607 | { |
3608 | struct btrfs_block_rsv *block_rsv; | 3608 | struct btrfs_block_rsv *block_rsv; |
3609 | struct btrfs_fs_info *fs_info = root->fs_info; | 3609 | struct btrfs_fs_info *fs_info = root->fs_info; |
3610 | u64 alloc_target; | ||
3611 | 3610 | ||
3612 | block_rsv = kmalloc(sizeof(*block_rsv), GFP_NOFS); | 3611 | block_rsv = kmalloc(sizeof(*block_rsv), GFP_NOFS); |
3613 | if (!block_rsv) | 3612 | if (!block_rsv) |
3614 | return NULL; | 3613 | return NULL; |
3615 | 3614 | ||
3616 | btrfs_init_block_rsv(block_rsv); | 3615 | btrfs_init_block_rsv(block_rsv); |
3617 | |||
3618 | alloc_target = btrfs_get_alloc_profile(root, 0); | ||
3619 | block_rsv->space_info = __find_space_info(fs_info, | 3616 | block_rsv->space_info = __find_space_info(fs_info, |
3620 | BTRFS_BLOCK_GROUP_METADATA); | 3617 | BTRFS_BLOCK_GROUP_METADATA); |
3621 | |||
3622 | return block_rsv; | 3618 | return block_rsv; |
3623 | } | 3619 | } |
3624 | 3620 | ||