From 65aa13ce5fd3b009f9ee87f368db5e8a16819180 Mon Sep 17 00:00:00 2001 From: Yongqiang Yang Date: Tue, 26 Jul 2011 21:51:08 -0400 Subject: [PATCH] --- yaml --- r: 262122 b: refs/heads/master c: 4740b830ed5720ade6c780dbf3fdfe9089b3552d h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/ext4/mballoc.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 66ada4ff176f..182ccdccbd34 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: cc7365dfe48cb2191f1572bf69e30d3e58716313 +refs/heads/master: 4740b830ed5720ade6c780dbf3fdfe9089b3552d diff --git a/trunk/fs/ext4/mballoc.c b/trunk/fs/ext4/mballoc.c index dbe429567eb3..b6ef4da39ce3 100644 --- a/trunk/fs/ext4/mballoc.c +++ b/trunk/fs/ext4/mballoc.c @@ -4691,6 +4691,9 @@ int ext4_group_add_blocks(handle_t *handle, struct super_block *sb, ext4_debug("Adding block(s) %llu-%llu\n", block, block + count - 1); + if (count == 0) + return 0; + ext4_get_group_no_and_offset(sb, block, &block_group, &bit); /* * Check to see if we are freeing blocks across a group