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>
This commit is contained in:
committed by
Theodore Ts'o
parent
ebbe027797
commit
66a83cde47
@@ -3345,7 +3345,6 @@ void ext4_mb_generate_from_pa(struct super_block *sb, void *bitmap,
|
|||||||
ext4_group_t groupnr;
|
ext4_group_t groupnr;
|
||||||
ext4_grpblk_t start;
|
ext4_grpblk_t start;
|
||||||
int preallocated = 0;
|
int preallocated = 0;
|
||||||
int count = 0;
|
|
||||||
int len;
|
int len;
|
||||||
|
|
||||||
/* all form of preallocation discards first load group,
|
/* all form of preallocation discards first load group,
|
||||||
@@ -3368,7 +3367,6 @@ void ext4_mb_generate_from_pa(struct super_block *sb, void *bitmap,
|
|||||||
BUG_ON(groupnr != group);
|
BUG_ON(groupnr != group);
|
||||||
ext4_set_bits(bitmap, start, len);
|
ext4_set_bits(bitmap, start, len);
|
||||||
preallocated += len;
|
preallocated += len;
|
||||||
count++;
|
|
||||||
}
|
}
|
||||||
mb_debug(1, "prellocated %u for group %u\n", preallocated, group);
|
mb_debug(1, "prellocated %u for group %u\n", preallocated, group);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user