]> git.baikalelectronics.ru Git - kernel.git/commit
atomic_open(): saner calling conventions (return dentry on success)
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 9 Jan 2020 19:12:40 +0000 (14:12 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 27 Feb 2020 19:43:56 +0000 (14:43 -0500)
commitcba968569748a08d8f31fcba4423c805112f9e58
treed29fd0ea84a07e0264c5f63a2c445a0a48612873
parentc2cc6a0420c5fdd8597aa5f0d03e786ab7a132c3
atomic_open(): saner calling conventions (return dentry on success)

Currently it either returns -E... or puts (nd->path.mnt,dentry)
into *path and returns 0.  Make it return ERR_PTR(-E...) or
dentry; adjust the caller.  Fewer arguments and it's easier
to keep track of *path contents that way.

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