Patchwork ext4: fix up a undefined error in ext4_free_blocks

login
register
mail settings
Submitter Yongqiang Yang
Date Nov. 13, 2011, 5:02 a.m.
Message ID <1321160521-12129-1-git-send-email-xiaoqiangnk@gmail.com>
Download mbox | patch
Permalink /patch/125381/
State Accepted
Headers show

Comments

Yongqiang Yang - Nov. 13, 2011, 5:02 a.m.
sbi is not defined, so let ext4_free_blocks use
EXT4_SB(sb) instead.

Signed-off-by: Yongqiang Yang <xiaoqiangnk@gmail.com>
---
 fs/ext4/balloc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Theodore Ts'o - Nov. 21, 2011, 5:10 p.m.
On Sun, Nov 13, 2011 at 01:02:01PM +0800, Yongqiang Yang wrote:
> sbi is not defined, so let ext4_free_blocks use
> EXT4_SB(sb) instead.
> 
> Signed-off-by: Yongqiang Yang <xiaoqiangnk@gmail.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

Patch

diff --git a/fs/ext4/balloc.c b/fs/ext4/balloc.c
index f6dba45..12ccacd 100644
--- a/fs/ext4/balloc.c
+++ b/fs/ext4/balloc.c
@@ -565,7 +565,7 @@  ext4_fsblk_t ext4_count_free_clusters(struct super_block *sb)
 	brelse(bitmap_bh);
 	printk(KERN_DEBUG "ext4_count_free_clusters: stored = %llu"
 	       ", computed = %llu, %llu\n",
-	       EXT4_B2C(sbi, ext4_free_blocks_count(es)),
+	       EXT4_B2C(EXT4_SB(sb), ext4_free_blocks_count(es)),
 	       desc_count, bitmap_count);
 	return bitmap_count;
 #else