[PATCH 1/1] JFS: Fix bug in quota code. tmp_bh.b_size must be initialized

[email protected] (Dave Kleikamp) Fri, 28 Jul 2006 14:16:08 -0500 (CDT)
Newsgroups gmane.comp.file-systems.jfs.patches
Message-ID <[email protected]>
JFS: Fix bug in quota code.  tmp_bh.b_size must be initialized

Signed-off-by: Dave Kleikamp <[email protected]>

---
commit 8bcb2839b74d605f5549962a6e69dc07768e95b6
tree 3cb69aeaedc8444ed91882ac63714b52a2df6836
parent 115ff50bade0f93a288677745a5884def6cbf9b1
author Dave Kleikamp <[email protected]> Fri, 28 Jul 2006 08:46:05 -0500
committer Dave Kleikamp <[email protected]> Fri, 28 Jul 2006 08:46:05 -0500

 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 90ee0de..143bcd1 100644
--- a/fs/jfs/super.c
+++ b/fs/jfs/super.c
@@ -678,6 +678,7 @@ static ssize_t jfs_quota_write(struct su
 				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;

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV