diff options
author | Curt Wohlgemuth <curtw@google.com> | 2011-12-18 17:39:02 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2011-12-18 17:39:02 -0500 |
commit | 14d7f3efe923bc60839c65f9818793c64b4d708b (patch) | |
tree | a37a51ebbec9bd97dc25503cef7b6440a684330c /fs/ext4 | |
parent | acd6ad83517639e8f09a8c5525b1dccd81cd2a10 (diff) |
ext4: remove unused local variable
In get_implied_cluster_alloc(), rr_cluster_end was being
defined and set, but was never used. Removed this.
Signed-off-by: Curt Wohlgemuth <curtw@google.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4')
-rw-r--r-- | fs/ext4/extents.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c index 607b1557d292..4423b11476af 100644 --- a/fs/ext4/extents.c +++ b/fs/ext4/extents.c | |||
@@ -3625,7 +3625,7 @@ static int get_implied_cluster_alloc(struct super_block *sb, | |||
3625 | struct ext4_sb_info *sbi = EXT4_SB(sb); | 3625 | struct ext4_sb_info *sbi = EXT4_SB(sb); |
3626 | ext4_lblk_t c_offset = map->m_lblk & (sbi->s_cluster_ratio-1); | 3626 | ext4_lblk_t c_offset = map->m_lblk & (sbi->s_cluster_ratio-1); |
3627 | ext4_lblk_t ex_cluster_start, ex_cluster_end; | 3627 | ext4_lblk_t ex_cluster_start, ex_cluster_end; |
3628 | ext4_lblk_t rr_cluster_start, rr_cluster_end; | 3628 | ext4_lblk_t rr_cluster_start; |
3629 | ext4_lblk_t ee_block = le32_to_cpu(ex->ee_block); | 3629 | ext4_lblk_t ee_block = le32_to_cpu(ex->ee_block); |
3630 | ext4_fsblk_t ee_start = ext4_ext_pblock(ex); | 3630 | ext4_fsblk_t ee_start = ext4_ext_pblock(ex); |
3631 | unsigned short ee_len = ext4_ext_get_actual_len(ex); | 3631 | unsigned short ee_len = ext4_ext_get_actual_len(ex); |
@@ -3636,7 +3636,6 @@ static int get_implied_cluster_alloc(struct super_block *sb, | |||
3636 | 3636 | ||
3637 | /* The requested region passed into ext4_map_blocks() */ | 3637 | /* The requested region passed into ext4_map_blocks() */ |
3638 | rr_cluster_start = EXT4_B2C(sbi, map->m_lblk); | 3638 | rr_cluster_start = EXT4_B2C(sbi, map->m_lblk); |
3639 | rr_cluster_end = EXT4_B2C(sbi, map->m_lblk + map->m_len - 1); | ||
3640 | 3639 | ||
3641 | if ((rr_cluster_start == ex_cluster_end) || | 3640 | if ((rr_cluster_start == ex_cluster_end) || |
3642 | (rr_cluster_start == ex_cluster_start)) { | 3641 | (rr_cluster_start == ex_cluster_start)) { |