diff options
author | Robin Dong <sanbai@taobao.com> | 2011-10-26 05:29:21 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2011-10-26 05:29:21 -0400 |
commit | 66a83cde47deb4e8874539326e12e88ed82158d3 (patch) | |
tree | 1edcff9e419358784db22b81a82c231f6aebe25f /fs/ext4 | |
parent | ebbe027797f67d34708ccfabdb129886d549f9ce (diff) |
ext4: remove unused variable in ext4_mb_generate_from_pa()
The variable 'count' in function ext4_mb_generate_from_pa() looks
useless, so remove it.
Signed-off-by: Robin Dong <sanbai@taobao.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4')
-rw-r--r-- | fs/ext4/mballoc.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c index 89762652aae2..c66531d800b1 100644 --- a/fs/ext4/mballoc.c +++ b/fs/ext4/mballoc.c | |||
@@ -3345,7 +3345,6 @@ void ext4_mb_generate_from_pa(struct super_block *sb, void *bitmap, | |||
3345 | ext4_group_t groupnr; | 3345 | ext4_group_t groupnr; |
3346 | ext4_grpblk_t start; | 3346 | ext4_grpblk_t start; |
3347 | int preallocated = 0; | 3347 | int preallocated = 0; |
3348 | int count = 0; | ||
3349 | int len; | 3348 | int len; |
3350 | 3349 | ||
3351 | /* all form of preallocation discards first load group, | 3350 | /* all form of preallocation discards first load group, |
@@ -3368,7 +3367,6 @@ void ext4_mb_generate_from_pa(struct super_block *sb, void *bitmap, | |||
3368 | BUG_ON(groupnr != group); | 3367 | BUG_ON(groupnr != group); |
3369 | ext4_set_bits(bitmap, start, len); | 3368 | ext4_set_bits(bitmap, start, len); |
3370 | preallocated += len; | 3369 | preallocated += len; |
3371 | count++; | ||
3372 | } | 3370 | } |
3373 | mb_debug(1, "prellocated %u for group %u\n", preallocated, group); | 3371 | mb_debug(1, "prellocated %u for group %u\n", preallocated, group); |
3374 | } | 3372 | } |