aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/mballoc.c
diff options
context:
space:
mode:
authorZheng Liu <gnehzuil.liu@gmail.com>2012-05-28 17:53:53 -0400
committerTheodore Ts'o <tytso@mit.edu>2012-05-28 17:53:53 -0400
commit400db9d30146dc062aaba97a6301b425eb6015bc (patch)
tree3d2dac1ccc329077991f1f9eae2e144ef83aea6c /fs/ext4/mballoc.c
parent2cde417de013b2e5ae3007374d937e8c4c426bd4 (diff)
ext4: cleanup in ext4_discard_allocated_blocks()
remove 'len' variable in ext4_discard_allocated_blocks() because it is useless. Signed-off-by: Zheng Liu <wenqing.lz@taobao.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/mballoc.c')
-rw-r--r--fs/ext4/mballoc.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c
index 45cb31e8dd27..e4b4ac1ec684 100644
--- a/fs/ext4/mballoc.c
+++ b/fs/ext4/mballoc.c
@@ -3073,13 +3073,9 @@ static void ext4_mb_collect_stats(struct ext4_allocation_context *ac)
3073static void ext4_discard_allocated_blocks(struct ext4_allocation_context *ac) 3073static void ext4_discard_allocated_blocks(struct ext4_allocation_context *ac)
3074{ 3074{
3075 struct ext4_prealloc_space *pa = ac->ac_pa; 3075 struct ext4_prealloc_space *pa = ac->ac_pa;
3076 int len;
3077
3078 if (pa && pa->pa_type == MB_INODE_PA) {
3079 len = ac->ac_b_ex.fe_len;
3080 pa->pa_free += len;
3081 }
3082 3076
3077 if (pa && pa->pa_type == MB_INODE_PA)
3078 pa->pa_free += ac->ac_b_ex.fe_len;
3083} 3079}
3084 3080
3085/* 3081/*