diff options
author | Zhao Lei <zhaolei@cn.fujitsu.com> | 2015-02-09 01:40:20 -0500 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2015-02-16 12:48:44 -0500 |
commit | b9fd47cde5dd9725ca37769861b7424f40828492 (patch) | |
tree | dc376e15148164b53883a016589b26201fbc16e2 /fs | |
parent | e8c9f18603f7ce2beca233401e228de730f121fa (diff) |
btrfs: cleanup: remove no-used alloc_chunk in btrfs_check_data_free_space()
int alloc_chunk is never used in this function, remove it.
Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/btrfs/extent-tree.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index 44f7d490a76f..262e16fe27d8 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c | |||
@@ -3599,7 +3599,7 @@ int btrfs_check_data_free_space(struct inode *inode, u64 bytes) | |||
3599 | struct btrfs_root *root = BTRFS_I(inode)->root; | 3599 | struct btrfs_root *root = BTRFS_I(inode)->root; |
3600 | struct btrfs_fs_info *fs_info = root->fs_info; | 3600 | struct btrfs_fs_info *fs_info = root->fs_info; |
3601 | u64 used; | 3601 | u64 used; |
3602 | int ret = 0, committed = 0, alloc_chunk = 1; | 3602 | int ret = 0, committed = 0; |
3603 | 3603 | ||
3604 | /* make sure bytes are sectorsize aligned */ | 3604 | /* make sure bytes are sectorsize aligned */ |
3605 | bytes = ALIGN(bytes, root->sectorsize); | 3605 | bytes = ALIGN(bytes, root->sectorsize); |
@@ -3627,7 +3627,7 @@ again: | |||
3627 | * if we don't have enough free bytes in this space then we need | 3627 | * if we don't have enough free bytes in this space then we need |
3628 | * to alloc a new chunk. | 3628 | * to alloc a new chunk. |
3629 | */ | 3629 | */ |
3630 | if (!data_sinfo->full && alloc_chunk) { | 3630 | if (!data_sinfo->full) { |
3631 | u64 alloc_target; | 3631 | u64 alloc_target; |
3632 | 3632 | ||
3633 | data_sinfo->force_alloc = CHUNK_ALLOC_FORCE; | 3633 | data_sinfo->force_alloc = CHUNK_ALLOC_FORCE; |