We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7bb959 commit 7228741Copy full SHA for 7228741
fs/namei.c
@@ -3147,15 +3147,11 @@ static const char *open_last_lookups(struct nameidata *nd,
3147
BUG_ON(nd->flags & LOOKUP_RCU);
3148
} else {
3149
/* create side of things */
3150
- /*
3151
- * This will *only* deal with leaving RCU mode - LOOKUP_JUMPED
3152
- * has been cleared when we got to the last component we are
3153
- * about to look up
3154
- */
3155
- error = complete_walk(nd);
3156
- if (unlikely(error))
3157
- return ERR_PTR(error);
3158
-
+ if (nd->flags & LOOKUP_RCU) {
+ error = unlazy_walk(nd);
+ if (unlikely(error))
+ return ERR_PTR(error);
+ }
3159
audit_inode(nd->name, dir, AUDIT_INODE_PARENT);
3160
/* trailing slashes? */
3161
if (unlikely(nd->last.name[nd->last.len]))
0 commit comments