]> git.ipfire.org Git - thirdparty/linux.git/commit - fs/binfmt_misc.c
turn filp_clone_open() into inline wrapper for dentry_open()
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 8 Jun 2018 15:19:32 +0000 (11:19 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 11 Jul 2018 03:29:03 +0000 (23:29 -0400)
commit19f391eb05b8b005f2907ddc8f284487b446abf3
treea319e8448de7c9f48c7fcd9f163f3e34f9bf6a34
parente8cff84faa4ddb6716caed085f515fbb1d856099
turn filp_clone_open() into inline wrapper for dentry_open()

it's exactly the same thing as
dentry_open(&file->f_path, file->f_flags, file->f_cred)

... and rename it to file_clone_open(), while we are at it.
'filp' naming convention is bogus; sure, it's "file pointer",
but we generally don't do that kind of Hungarian notation.
Some of the instances have too many callers to touch, but this
one has only two, so let's sanitize it while we can...

Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
drivers/gpu/drm/drm_lease.c
fs/binfmt_misc.c
fs/open.c
include/linux/fs.h