From: Yongqiang Yang Date: Mon, 21 Nov 2011 17:09:19 +0000 (-0500) Subject: ext4: fix up a undefined error in ext4_free_blocks in debugging code X-Git-Tag: v3.2-rc3~21^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6e58ad69efe9f4c91eb15f6bc365293414c397ce;p=platform%2Fkernel%2Flinux-3.10.git ext4: fix up a undefined error in ext4_free_blocks in debugging code sbi is not defined, so let ext4_free_blocks use EXT4_SB(sb) instead when EXT4FS_DEBUG is defined. Signed-off-by: Yongqiang Yang --- 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