From: Dave Kleikamp Date: Fri, 28 Jul 2006 13:46:05 +0000 (-0500) Subject: JFS: Fix bug in quota code. tmp_bh.b_size must be initialized X-Git-Tag: v2.6.18-rc5~132^2 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8bcb2839b74d605f5549962a6e69dc07768e95b6;p=linux-2.6 JFS: Fix bug in quota code. tmp_bh.b_size must be initialized Signed-off-by: Dave Kleikamp --- diff --git a/fs/jfs/super.c b/fs/jfs/super.c index 90ee0de829..143bcd1d5e 100644 --- a/fs/jfs/super.c +++ b/fs/jfs/super.c @@ -678,6 +678,7 @@ static ssize_t jfs_quota_write(struct super_block *sb, int type, sb->s_blocksize - offset : towrite; tmp_bh.b_state = 0; + tmp_bh.b_size = 1 << inode->i_blkbits; err = jfs_get_block(inode, blk, &tmp_bh, 1); if (err) goto out;