]> git.baikalelectronics.ru Git - kernel.git/commit
open-style analog of vfs_path_lookup()
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 11 Mar 2011 17:08:24 +0000 (12:08 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 14 Mar 2011 13:15:28 +0000 (09:15 -0400)
commit45d0198e69cea47090d372b8adbe9f58a66db081
treea713747cd06926ad89bfa9b36ea13dd20bbc507f
parentac9e25059eb23852f1e418a94d1672d470425af0
open-style analog of vfs_path_lookup()

new function: file_open_root(dentry, mnt, name, flags) opens the file
vfs_path_lookup would arrive to.

Note that name can be empty; in that case the usual requirement that
dentry should be a directory is lifted.

open-coded equivalents switched to it, may_open() got down exactly
one caller and became static.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/um/drivers/mconsole_kern.c
fs/internal.h
fs/namei.c
fs/nfsctl.c
fs/open.c
include/linux/fs.h
kernel/sysctl_binary.c