Messages in this thread Patch in this message |  | | Date | Fri, 3 Nov 2000 22:19:19 +0100 | From | Jan Kara <> | Subject | Small 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(); |  |