lkml.org 
[lkml]   [2000]   [Nov]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectSmall fix
  Hello.

I've got a report that some people using quotas for lots of
users are experiencing being out of dquots. The problem is
that we have quota structs bound in unused inodes and we are not
aggressive enough to get it back. The following patch should
fix it (OK, more proper would be to make quota cache dynamic
as inode cache is but that wouldn't definitely pass over you :)).

Honza
--- linux/fs/dquot.c Fri Oct 6 00:18:14 2000
+++ linux/fs/dquot.c Fri Nov 3 21:10:51 2000
@@ -522,7 +522,7 @@
struct dquot *get_empty_dquot(void)
{
struct dquot *dquot;
- int shrink = 1; /* Number of times we should try to shrink dcache and icache */
+ int shrink = 16; /* Number of times we should try to shrink dcache and icache */

repeat:
dquot = find_best_free();
\
 
 \ /
  Last update: 2005-03-22 12:45    [W:0.041 / U:5.656 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site