]> git.baikalelectronics.ru Git - kernel.git/commit
vfs: decrapify dput(), fix cache behavior under normal load
authorLinus Torvalds <torvalds@linux-foundation.org>
Thu, 31 Oct 2013 22:43:02 +0000 (15:43 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 31 Oct 2013 22:43:02 +0000 (15:43 -0700)
commitc80bd747e23071807ba7ac3d0ea7522a802e2fd2
tree551bb789fa555bd26851a6d43bd78c6c3a398d00
parent015b63a72044bd51741672e8ed3e3946964fd998
vfs: decrapify dput(), fix cache behavior under normal load

We do not want to dirty the dentry->d_flags cacheline in dput() just to
set the DCACHE_REFERENCED flag when it is already set in the common case
anyway.  This way the first cacheline of the dentry (which contains the
RCU lookup information etc) can stay shared among multiple CPU's.

This finishes off some of the details of all the scalability patches
merged during the merge window.

Also don't mark dentry_kill() for inlining, since it's the uncommon path
and inlining it just makes the common path slower due to extra function
entry/exit overhead.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/dcache.c