From: Nick Piggin Date: Fri, 7 Jan 2011 06:49:18 +0000 (+1100) Subject: vfs: revert per-cpu nr_unused counters for dentry and inodes X-Git-Tag: v2.6.38-rc1~468^2~53 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=86c8749ede0c59e590de9267066932a26f1ce796;p=pandora-kernel.git vfs: revert per-cpu nr_unused counters for dentry and inodes The nr_unused counters count the number of objects on an LRU, and as such they are synchronized with LRU object insertion and removal and scanning, and protected under the LRU lock. Making it per-cpu does not actually get any concurrency improvements because of this lock, and summing the counter is much slower, and incrementing/decrementing it costs more code size and is slower too. These counters should stay per-LRU, which currently means global. Signed-off-by: Nick Piggin --- Reading git-diff-tree failed