diff options
author | Nick Piggin <npiggin@suse.de> | 2010-01-29 15:38:26 -0800 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2010-04-27 17:32:39 +0200 |
commit | c2a70ba1f43bdf30f35479cf0e641136d5f979e7 (patch) | |
tree | 573ef711eeaf6ff492fd50ddbf7acb6d6e426775 /include | |
parent | b5acee084dabd0916f73c65a42fd25e94bc3cd21 (diff) | |
download | lwn-c2a70ba1f43bdf30f35479cf0e641136d5f979e7.tar.gz lwn-c2a70ba1f43bdf30f35479cf0e641136d5f979e7.zip |
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')
-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 { }; struct dentry_stat_t { - atomic_t nr_dentry; + int nr_dentry; /* unused */ int nr_unused; /* protected by dcache_lru_lock */ int age_limit; /* age in seconds */ int want_pages; /* pages requested by system */ |