Skip to content
Snippets Groups Projects
Commit 86c8749e authored by Nick Piggin's avatar Nick Piggin
Browse files

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: default avatarNick Piggin <npiggin@kernel.dk>
parent ccd35fb9
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment