Skip to content

Commit

Permalink
JFS: Fix bug in quota code. tmp_bh.b_size must be initialized
Browse files Browse the repository at this point in the history
Signed-off-by: Dave Kleikamp <shaggy@austin.ibm.com>
  • Loading branch information
Dave Kleikamp committed Jul 28, 2006
1 parent 115ff50 commit 8bcb283
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/jfs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8bcb283

Please sign in to comment.