All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ext4: fix up a undefined error in ext4_free_blocks
@ 2011-11-13  5:02 Yongqiang Yang
  2011-11-21 17:10 ` Ted Ts'o
  0 siblings, 1 reply; 2+ messages in thread
From: Yongqiang Yang @ 2011-11-13  5:02 UTC (permalink / raw)
  To: tytso; +Cc: linux-ext4, Yongqiang Yang

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(-)

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
-- 
1.7.5.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] ext4: fix up a undefined error in ext4_free_blocks
  2011-11-13  5:02 [PATCH] ext4: fix up a undefined error in ext4_free_blocks Yongqiang Yang
@ 2011-11-21 17:10 ` Ted Ts'o
  0 siblings, 0 replies; 2+ messages in thread
From: Ted Ts'o @ 2011-11-21 17:10 UTC (permalink / raw)
  To: Yongqiang Yang; +Cc: linux-ext4

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-11-21 17:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-13  5:02 [PATCH] ext4: fix up a undefined error in ext4_free_blocks Yongqiang Yang
2011-11-21 17:10 ` Ted Ts'o

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.