summaryrefslogtreecommitdiffstats
path: root/fs/ext4/balloc.c
diff options
context:
space:
mode:
authorYongqiang Yang <xiaoqiangnk@gmail.com>2011-11-21 12:09:19 -0500
committerTheodore Ts'o <tytso@mit.edu>2011-11-21 12:09:19 -0500
commit6e58ad69efe9f4c91eb15f6bc365293414c397ce (patch)
tree06c1f88ed4448526234172a2ae9ad2458488920d /fs/ext4/balloc.c
parent3c1fcb2c24519febd7ca9cf292fa5bdf513b601f (diff)
downloadop-kernel-dev-6e58ad69efe9f4c91eb15f6bc365293414c397ce.zip
op-kernel-dev-6e58ad69efe9f4c91eb15f6bc365293414c397ce.tar.gz
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 <xiaoqiangnk@gmail.com>
Diffstat (limited to 'fs/ext4/balloc.c')
-rw-r--r--fs/ext4/balloc.c2
1 files changed, 1 insertions, 1 deletions
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
OpenPOWER on IntegriCloud