• N
    vfs: revert per-cpu nr_unused counters for dentry and inodes · 86c8749e
    Nick Piggin 提交于
    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: NNick Piggin <npiggin@kernel.dk>
    86c8749e
dcache.c 61.8 KB