summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2004-04-26 08:56:11 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-04-26 08:56:11 -0700
commit2187a5e40da5350c3c7c95ae1b5091bc4a5b68ad (patch)
tree0d22a1e051ea51267c7e5bcc03bba26302199c97 /include/linux
parentfa24b7f29fd262cfbba7a255da5aaf478d4edf0a (diff)
[PATCH] Bigger quota hashtable
From: Jan Kara <jack@ucw.cz> I found out that quota uses hash table with just 43 entries to hash dquot entries. I guess that we can afford using one page for that (quotactl(Q_GETQUOTA...), got faster like 3x for 4000 users). Attached patch implements that.
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/quota.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/include/linux/quota.h b/include/linux/quota.h
index 7d8c601ec2da..7f43ae55e891 100644
--- a/include/linux/quota.h
+++ b/include/linux/quota.h
@@ -201,8 +201,6 @@ struct dqstats {
extern struct dqstats dqstats;
-#define NR_DQHASH 43 /* Just an arbitrary number */
-
#define DQ_MOD_B 0 /* dquot modified since read */
#define DQ_BLKS_B 1 /* uid/gid has been warned about blk limit */
#define DQ_INODES_B 2 /* uid/gid has been warned about inode limit */
@@ -212,7 +210,7 @@ extern struct dqstats dqstats;
#define DQ_WAITFREE_B 6 /* dquot being waited (by invalidate_dquots) */
struct dquot {
- struct list_head dq_hash; /* Hash list in memory */
+ struct hlist_node dq_hash; /* Hash list in memory */
struct list_head dq_inuse; /* List of all quotas */
struct list_head dq_free; /* Free list element */
struct semaphore dq_lock; /* dquot IO lock */