OSDN Git Service

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)
commit63b27720a476e99d3eaceee9d2246459ae0f6286
tree8b095f6a8cf39852f58d638497220e89d68b7e89
parent6b03f7edf43e3b284c023ab03aba6e5e7c5a7559
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