Christoph Hellwig 312d3ca856 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 <npiggin@suse.de>.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2010-10-25 21:26:12 -04:00
..
2010-09-09 20:48:37 +02:00
2010-09-09 21:07:09 +02:00
2010-09-22 17:22:39 -07:00
2010-10-25 21:26:11 -04:00
2010-10-01 10:50:58 -07:00
2010-10-18 18:44:26 +02:00
2010-10-07 09:41:25 +02:00