vfs: split __lookup_hash
authorMiklos Szeredi <mszeredi@suse.cz>
Mon, 26 Mar 2012 10:54:24 +0000 (12:54 +0200)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 31 Mar 2012 20:03:17 +0000 (16:03 -0400)
commitbad61189780ec0592cacde01a0775cb98a30efdc
treec17f96209e27717bab726d1fae5c4164c49c4860
parent81e6f520898edbda56e8680d338ace4f5694874e
vfs: split __lookup_hash

Split __lookup_hash into two component functions:

 lookup_dcache - tries cached lookup, returns whether real lookup is needed
 lookup_real - calls i_op->lookup

This eliminates code duplication between d_alloc_and_lookup() and
d_inode_lookup().

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/namei.c