From: Christoph Hellwig Date: Sun, 10 Oct 2010 09:36:23 +0000 (-0400) Subject: fs: use percpu counter for nr_dentry and nr_dentry_unused X-Git-Tag: v2.6.37-rc1~94^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=312d3ca856d369bb04d0443846b85b4cdde6fa8a;p=pandora-kernel.git fs: use percpu counter for nr_dentry and nr_dentry_unused 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. Turn it into a per-cpu counter and always decrement it in d_free instead of doing various batching operations to reduce lock hold times in the callers. Based on an earlier patch from Nick Piggin . Signed-off-by: Christoph Hellwig Signed-off-by: Al Viro --- Reading git-diff-tree failed