summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorMartin Dalecki <dalecki@evision-ventures.com>2002-05-21 21:49:08 -0700
committerLinus Torvalds <torvalds@home.transmeta.com>2002-05-21 21:49:08 -0700
commit17eb4a37572617e20ac06ef6ff096efb901b0a36 (patch)
treec9a6647955ede23e9cce4e74bc7b9177642ac16b /include/linux
parentace2dc79006a8d3de4a5dac36ec6c94873d57dd0 (diff)
[PATCH] 2.5.17 dquota punishment
Transform new quota code to use sysctl instead of /proc/fs.
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/quota.h26
-rw-r--r--include/linux/sysctl.h1
2 files changed, 15 insertions, 12 deletions
diff --git a/include/linux/quota.h b/include/linux/quota.h
index 0a36a5e59caf..1a9d178c57bc 100644
--- a/include/linux/quota.h
+++ b/include/linux/quota.h
@@ -184,20 +184,22 @@ extern inline void mark_info_dirty(struct mem_dqinfo *info)
#define sb_dqopt(sb) (&(sb)->s_dquot)
-extern int nr_dquots, nr_free_dquots;
-
-struct dqstats {
- __u32 lookups;
- __u32 drops;
- __u32 reads;
- __u32 writes;
- __u32 cache_hits;
- __u32 allocated_dquots;
- __u32 free_dquots;
- __u32 syncs;
+/*
+ * Statistics about disc quota.
+ */
+enum {
+ DQSTATS_LOOKUPS,
+ DQSTATS_DROPS,
+ DQSTATS_READS,
+ DQSTATS_WRITES,
+ DQSTATS_CACHE_HITS,
+ DQSTATS_ALLOCATED,
+ DQSTATS_FREE,
+ DQSTATS_SYNCS,
+ DQSTATS_SIZE
};
-extern struct dqstats dqstats;
+extern __u32 dqstats_array[DQSTATS_SIZE];
#define NR_DQHASH 43 /* Just an arbitrary number */
diff --git a/include/linux/sysctl.h b/include/linux/sysctl.h
index 2f25df04d925..373d20b4c4a7 100644
--- a/include/linux/sysctl.h
+++ b/include/linux/sysctl.h
@@ -544,6 +544,7 @@ enum
FS_LEASES=13, /* int: leases enabled */
FS_DIR_NOTIFY=14, /* int: directory notification enabled */
FS_LEASE_TIME=15, /* int: maximum time to wait for a lease break */
+ FS_DQSTATS=16, /* int: disc quota suage statistics */
};
/* CTL_DEBUG names: */