mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-09-26 18:16:26 +00:00
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>
This commit is contained in:
parent
ccd35fb9f4
commit
86c8749ede
2 changed files with 12 additions and 21 deletions
16
fs/dcache.c
16
fs/dcache.c
17
fs/inode.c
17
fs/inode.c
Loading…
Add table
Add a link
Reference in a new issue