What's that?
get_empty_dquot() defines a variable `count' that it never initializes. I get
the following compiler message:
dquot.c:542: warning: `count' might be used uninitialized in this function
Possible patch attached. Don't know if this was the intention.
Andreas
------------------------------------------------------------------------
Andreas Gruenbacher, [EMAIL PROTECTED]
Contact information: http://www.infosys.tuwien.ac.at/~agruenba
----------------------------------------------
--- dquot.c.orig Sun Jan 9 06:44:29 2000
+++ dquot.c Sun Jan 9 006:45:37 2000
@@ -539,7 +539,6 @@
struct dquot *get_empty_dquot(void)
{
struct dquot *dquot;
- int count;
repeat:
dquot = find_best_free();
@@ -569,10 +568,10 @@
/*
* Try pruning the dcache to free up some dquots ...
*/
- printk(KERN_DEBUG "get_empty_dquot: pruning %d\n", count);
+ printk(KERN_DEBUG "get_empty_dquot: pruning %d\n", dquot->dq_count);
if (prune_dcache(0, 128))
{
- free_inode_memory(count);
+ free_inode_memory(dquot->dq_count);
goto repeat;
}