]> Git Repo - linux.git/commit
now we can fold open_check_o_direct() into do_dentry_open()
authorAl Viro <[email protected]>
Fri, 8 Jun 2018 17:01:49 +0000 (13:01 -0400)
committerAl Viro <[email protected]>
Thu, 12 Jul 2018 14:04:17 +0000 (10:04 -0400)
commit69527c554f82d4bca4b154ccc06ad1554806bdc0
tree5b920d336fac1fb8a0385228734f5156fce452b8
parent7c1c01ec20d61ef52dba9b6f85435e53449bea71
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 <[email protected]>
Signed-off-by: Al Viro <[email protected]>
fs/internal.h
fs/namei.c
fs/open.c
This page took 0.044352 seconds and 4 git commands to generate.