diff options
author | Nick Piggin <npiggin@kernel.dk> | 2011-01-07 06:49:18 (GMT) |
---|---|---|
committer | Nick Piggin <npiggin@kernel.dk> | 2011-01-07 06:50:17 (GMT) |
commit | 86c8749ede0c59e590de9267066932a26f1ce796 (patch) | |
tree | 316517d7c03d9caf0577acc517532ed2bc1801cc /fs/open.c | |
parent | ccd35fb9f4da856b105ea0f1e0cab3702e8ae6ba (diff) | |
download | linux-fsl-qoriq-86c8749ede0c59e590de9267066932a26f1ce796.tar.xz |
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 <npiggin@kernel.dk>
Diffstat (limited to 'fs/open.c')
0 files changed, 0 insertions, 0 deletions