linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Linux 2.4 quota (accounting?) bug ...
@ 2003-10-25 16:26 Herbert Poetzl
  2003-10-25 16:31 ` Jan Kara
  0 siblings, 1 reply; 5+ messages in thread
From: Herbert Poetzl @ 2003-10-25 16:26 UTC (permalink / raw)
  To: Jan Kara; +Cc: linux-kernel, Alex Lyashkov


Hi Honza!

a friend of mine, made me aware of the following
imbalance, which looks like a minor accounting bug 
to me, but might be a quota bug ...

fs/dquot.c : 394 vfs_quota_sync()
-----------------------------------------------------
                /* Get reference to quota so it won't be invalidated. get_dquot_ref()
                 * is enough since if dquot is locked/modified it can't be
                 * on the free list */

> 		get_dquot_ref(dquot);
 		if (dquot->dq_flags & DQ_LOCKED)
 			wait_on_dquot(dquot);
 		if (dquot_dirty(dquot))
 			sb->dq_op->sync_dquot(dquot);
>		dqput(dquot);
 		goto restart;
 	}


best,
Herbert



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

end of thread, other threads:[~2003-11-05 20:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-25 16:26 Linux 2.4 quota (accounting?) bug Herbert Poetzl
2003-10-25 16:31 ` Jan Kara
2003-10-25 17:42   ` Herbert Poetzl
2003-10-28 23:40     ` Jan Kara
2003-11-05 20:36     ` Jan Kara

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).