]> git.ipfire.org Git - people/ms/linux.git/commit - fs/namei.c
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)
commit239eb983383b1b140e588fe8f1c7d1ce953285f6
treed29fd0ea84a07e0264c5f63a2c445a0a48612873
parentbd7c4b508344680c843e2d2436d56b9fc8aedc9d
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