diff options
-rw-r--r-- | fs/namei.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/namei.c b/fs/namei.c index 8df7a78ace58..529e917ad2fc 100644 --- a/fs/namei.c +++ b/fs/namei.c | |||
@@ -1089,6 +1089,7 @@ static int do_lookup(struct nameidata *nd, struct qstr *name, | |||
1089 | nd->seq = seq; | 1089 | nd->seq = seq; |
1090 | if (dentry->d_flags & DCACHE_OP_REVALIDATE) | 1090 | if (dentry->d_flags & DCACHE_OP_REVALIDATE) |
1091 | goto need_revalidate; | 1091 | goto need_revalidate; |
1092 | done2: | ||
1092 | path->mnt = mnt; | 1093 | path->mnt = mnt; |
1093 | path->dentry = dentry; | 1094 | path->dentry = dentry; |
1094 | __follow_mount_rcu(nd, path, inode); | 1095 | __follow_mount_rcu(nd, path, inode); |
@@ -1143,6 +1144,8 @@ need_revalidate: | |||
1143 | goto need_lookup; | 1144 | goto need_lookup; |
1144 | if (IS_ERR(dentry)) | 1145 | if (IS_ERR(dentry)) |
1145 | goto fail; | 1146 | goto fail; |
1147 | if (nd->flags & LOOKUP_RCU) | ||
1148 | goto done2; | ||
1146 | goto done; | 1149 | goto done; |
1147 | 1150 | ||
1148 | fail: | 1151 | fail: |