Message ID | 1316070580-10723-2-git-send-email-hao.bigrat@gmail.com |
---|---|
State | Accepted, archived |
Headers | show |
On Thu, Sep 15, 2011 at 03:09:38PM +0800, Robin Dong wrote: > From: Robin Dong <sanbai@taobao.com> > > The argument 'count' in function ext4_mb_generate_from_pa looks useless, > so clean it. > > Signed-off-by: Robin Dong <sanbai@taobao.com> Thanks, applied. - Ted -- To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c index 6b58247..d0fc76e 100644 --- a/fs/ext4/mballoc.c +++ b/fs/ext4/mballoc.c @@ -3312,7 +3312,6 @@ void ext4_mb_generate_from_pa(struct super_block *sb, void *bitmap, ext4_group_t groupnr; ext4_grpblk_t start; int preallocated = 0; - int count = 0; int len; /* all form of preallocation discards first load group, @@ -3335,7 +3334,6 @@ void ext4_mb_generate_from_pa(struct super_block *sb, void *bitmap, BUG_ON(groupnr != group); ext4_set_bits(bitmap, start, len); preallocated += len; - count++; } mb_debug(1, "prellocated %u for group %u\n", preallocated, group); }