]> git.baikalelectronics.ru Git - kernel.git/commit
path_parent_directory(): leave changing path->dentry to callers
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 24 Feb 2020 21:01:19 +0000 (16:01 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 14 Mar 2020 01:09:13 +0000 (21:09 -0400)
commit25648d29bad306855c2dec0e6b4c9dc77670ce5f
tree8b095f6a8cf39852f58d638497220e89d68b7e89
parent0fdf6f91fbb53ca58d9f0202b57be14920b8afba
path_parent_directory(): leave changing path->dentry to callers

Instead of returning 0, return new dentry; instead of returning
-ENOENT, return NULL.  Adjust the callers accordingly.

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