]> git.baikalelectronics.ru Git - kernel.git/commit
vfs: uninline full_name_hash()
authorLinus Torvalds <torvalds@linux-foundation.org>
Fri, 2 Mar 2012 22:32:59 +0000 (14:32 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 2 Mar 2012 22:32:59 +0000 (14:32 -0800)
commit6818e53d357c1da72ec70863308b0b8b5b7a1a9e
tree779292f953fb9845252295679fb712faf7f52624
parentba3656d80f1a79dfd17c69e80c9757e3ca28cc7f
vfs: uninline full_name_hash()

.. and also use it in lookup_one_len() rather than open-coding it.

There aren't any performance-critical users, so inlining it is silly.
But it wouldn't matter if it wasn't for the fact that the word-at-a-time
dentry name patches want to conditionally replace the function, and
uninlining it sets the stage for that.

So again, this is a preparatory patch that doesn't change any semantics,
and only prepares for a much cleaner and testable word-at-a-time dentry
name accessor patch.

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