summaryrefslogtreecommitdiff
path: root/include/linux/quota.h
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2002-05-28 19:45:00 -0700
committerLinus Torvalds <torvalds@home.transmeta.com>2002-05-28 19:45:00 -0700
commit26dc86a27e91e792c4dfd593bbdaa0b2563f7e24 (patch)
tree408da26ec0e4551a2c912940efe0e42a7fa203ec /include/linux/quota.h
parentc5bea884b114a3b656b5d0b6c43b14a023a04e3b (diff)
[PATCH] Quota update [2/3]
This changes the sysctl interface to use reasonable names in /proc/sys/fs/quota/
Diffstat (limited to 'include/linux/quota.h')
-rw-r--r--include/linux/quota.h24
1 files changed, 10 insertions, 14 deletions
diff --git a/include/linux/quota.h b/include/linux/quota.h
index 1a9d178c57bc..bdaca4b90592 100644
--- a/include/linux/quota.h
+++ b/include/linux/quota.h
@@ -184,22 +184,18 @@ extern inline void mark_info_dirty(struct mem_dqinfo *info)
#define sb_dqopt(sb) (&(sb)->s_dquot)
-/*
- * Statistics about disc quota.
- */
-enum {
- DQSTATS_LOOKUPS,
- DQSTATS_DROPS,
- DQSTATS_READS,
- DQSTATS_WRITES,
- DQSTATS_CACHE_HITS,
- DQSTATS_ALLOCATED,
- DQSTATS_FREE,
- DQSTATS_SYNCS,
- DQSTATS_SIZE
+struct dqstats {
+ int lookups;
+ int drops;
+ int reads;
+ int writes;
+ int cache_hits;
+ int allocated_dquots;
+ int free_dquots;
+ int syncs;
};
-extern __u32 dqstats_array[DQSTATS_SIZE];
+extern struct dqstats dqstats;
#define NR_DQHASH 43 /* Just an arbitrary number */