diff options
author | Dave Kleikamp <shaggy@austin.ibm.com> | 2006-07-28 09:46:05 -0400 |
---|---|---|
committer | Dave Kleikamp <shaggy@austin.ibm.com> | 2006-07-28 09:46:05 -0400 |
commit | 8bcb2839b74d605f5549962a6e69dc07768e95b6 (patch) | |
tree | 3cb69aeaedc8444ed91882ac63714b52a2df6836 /fs/jfs | |
parent | 115ff50bade0f93a288677745a5884def6cbf9b1 (diff) |
JFS: Fix bug in quota code. tmp_bh.b_size must be initialized
Signed-off-by: Dave Kleikamp <shaggy@austin.ibm.com>
Diffstat (limited to 'fs/jfs')
-rw-r--r-- | fs/jfs/super.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/jfs/super.c b/fs/jfs/super.c index 90ee0de829c1..143bcd1d5eaa 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, | |||
678 | sb->s_blocksize - offset : towrite; | 678 | sb->s_blocksize - offset : towrite; |
679 | 679 | ||
680 | tmp_bh.b_state = 0; | 680 | tmp_bh.b_state = 0; |
681 | tmp_bh.b_size = 1 << inode->i_blkbits; | ||
681 | err = jfs_get_block(inode, blk, &tmp_bh, 1); | 682 | err = jfs_get_block(inode, blk, &tmp_bh, 1); |
682 | if (err) | 683 | if (err) |
683 | goto out; | 684 | goto out; |