You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
namei.c : update mnt when it needed
update the mnt of the path when it is not equal to the new one. Signed-off-by: Huang Shijie <shijie8@gmail.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
+3
-2
@@ -523,9 +523,10 @@ static void path_put_conditional(struct path *path, struct nameidata *nd)
|
||||
static inline void path_to_nameidata(struct path *path, struct nameidata *nd)
|
||||
{
|
||||
dput(nd->path.dentry);
|
||||
if (nd->path.mnt != path->mnt)
|
||||
if (nd->path.mnt != path->mnt) {
|
||||
mntput(nd->path.mnt);
|
||||
nd->path.mnt = path->mnt;
|
||||
nd->path.mnt = path->mnt;
|
||||
}
|
||||
nd->path.dentry = path->dentry;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user