vfs: split do_lookup()
authorMiklos Szeredi <mszeredi@suse.cz>
Mon, 21 May 2012 15:30:05 +0000 (17:30 +0200)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 1 Jun 2012 16:11:56 +0000 (12:11 -0400)
commit697f514df10b0f46bcd7596c1be18b7e2e9b28bb
treeeed5439dcc771e5ee18cab74de829e97200ea320
parente41f941a23115e84a8550b3d901a13a14b2edc2f
vfs: split do_lookup()

Split do_lookup() into two functions:

  lookup_fast() - does cached lookup without i_mutex
  lookup_slow() - does lookup with i_mutex

Both follow managed dentries.

The new functions are needed by atomic_open.

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