linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* missing inode_add_bytes in dquot_alloc_space
@ 2004-01-14 16:27 Dave Kleikamp
  2004-01-15  8:43 ` Jan Kara
  2004-01-16 11:20 ` Jan Kara
  0 siblings, 2 replies; 7+ messages in thread
From: Dave Kleikamp @ 2004-01-14 16:27 UTC (permalink / raw)
  To: Jan Kara; +Cc: fsdevel

[-- Attachment #1: Type: text/plain, Size: 277 bytes --]

Jan,
I don't think it was intentional, but in dquot_alloc_space, if
IS_NOQUOTA(inode) is true, then i_blocks doesn't get updated.  This
patch would fix it to do what I believe it should.  Is this right, or am
I missing something?
-- 
David Kleikamp
IBM Linux Technology Center

[-- Attachment #2: dquot.patch --]
[-- Type: text/plain, Size: 333 bytes --]

===== fs/dquot.c 1.70 vs edited =====
--- 1.70/fs/dquot.c	Mon Dec 29 15:37:59 2003
+++ edited/fs/dquot.c	Wed Jan 14 09:56:58 2004
@@ -890,6 +890,7 @@
 
 	down_read(&sb_dqopt(inode->i_sb)->dqptr_sem);
 	if (IS_NOQUOTA(inode)) {
+		inode_add_bytes(inode, number);
 		up_read(&sb_dqopt(inode->i_sb)->dqptr_sem);
 		return QUOTA_OK;
 	}

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

end of thread, other threads:[~2004-01-16 13:57 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-14 16:27 missing inode_add_bytes in dquot_alloc_space Dave Kleikamp
2004-01-15  8:43 ` Jan Kara
2004-01-16 11:20 ` Jan Kara
2004-01-16 12:19   ` Christoph Hellwig
2004-01-16 13:33     ` Jan Kara
2004-01-16 13:57       ` Christoph Hellwig
2004-01-16 13:37     ` Dave Kleikamp

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).