diff options
author | Nick Piggin <npiggin@suse.de> | 2010-01-29 18:38:26 -0500 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2010-04-27 11:32:39 -0400 |
commit | c2a70ba1f43bdf30f35479cf0e641136d5f979e7 (patch) | |
tree | 573ef711eeaf6ff492fd50ddbf7acb6d6e426775 /include/linux/dcache.h | |
parent | b5acee084dabd0916f73c65a42fd25e94bc3cd21 (diff) |
dcache-percpu-nr_dentry
The nr_dentry stat is a globally touched cacheline and atomic operation
twice over the lifetime of a dentry. It is used for the benfit of userspace
only. We could make a per-cpu counter or something for it, but it is only
accessed via proc, so we could use slab stats.
XXX: must implement slab routines to return stats for a single cache, and
implement the proc handler.
Signed-off-by: Nick Piggin <npiggin@suse.de>
Signed-off-by: John Stultz <johnstul@us.ibm.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/linux/dcache.h')
-rw-r--r-- | include/linux/dcache.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/dcache.h b/include/linux/dcache.h index 1ca2e7fb7a86..efdeb3582a17 100644 --- a/include/linux/dcache.h +++ b/include/linux/dcache.h | |||
@@ -37,7 +37,7 @@ struct qstr { | |||
37 | }; | 37 | }; |
38 | 38 | ||
39 | struct dentry_stat_t { | 39 | struct dentry_stat_t { |
40 | atomic_t nr_dentry; | 40 | int nr_dentry; /* unused */ |
41 | int nr_unused; /* protected by dcache_lru_lock */ | 41 | int nr_unused; /* protected by dcache_lru_lock */ |
42 | int age_limit; /* age in seconds */ | 42 | int age_limit; /* age in seconds */ |
43 | int want_pages; /* pages requested by system */ | 43 | int want_pages; /* pages requested by system */ |