]> git.baikalelectronics.ru Git - kernel.git/commit
now we can fold open_check_o_direct() into do_dentry_open()
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 8 Jun 2018 17:01:49 +0000 (13:01 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 12 Jul 2018 14:04:17 +0000 (10:04 -0400)
commitb7409c618000982cbcb00d221628aeadfb1287d3
tree5b920d336fac1fb8a0385228734f5156fce452b8
parent8e5c5d9bc376260c816e18773cb887f041d39841
now we can fold open_check_o_direct() into do_dentry_open()

These checks are better off in do_dentry_open(); the reason we couldn't
put them there used to be that callers couldn't tell what kind of cleanup
would do_dentry_open() failure call for.  Now that we have FMODE_OPENED,
cleanup is the same in all cases - it's simply fput().  So let's fold
that into do_dentry_open(), as Christoph's patch tried to.

Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/internal.h
fs/namei.c
fs/open.c