[PATCH 1/6] fs: Introduce a per_cpu nr_dentry
From: Eric Dumazet <hidden>
Date: 2008-11-26 23:31:47
Also in:
lkml
Attachments
- per_cpu_nr_dentry.patch [text/plain] 4782 bytes · preview
From: Eric Dumazet <hidden>
Date: 2008-11-26 23:31:47
Also in:
lkml
Adding a per_cpu nr_dentry avoids cache line ping pongs between cpus to maintain this metric. We centralize decrements of nr_dentry in d_free(), and increments in d_alloc(). d_alloc() can avoid taking dcache_lock if parent is NULL Signed-off-by: Eric Dumazet <dada1-fPLkHRcR87vqlBn2x/YWAg@public.gmane.org> --- fs/dcache.c | 55 ++++++++++++++++++++++++++++--------------- include/linux/fs.h | 2 + kernel/sysctl.c | 2 - 3 files changed, 40 insertions(+), 19 deletions(-)