Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
72287417
Commit
72287417
authored
Mar 10, 2020
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
open_last_lookups(): don't abuse complete_walk() when all we want is unlazy
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
f7bb959d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
9 deletions
+5
-9
fs/namei.c
fs/namei.c
+5
-9
No files found.
fs/namei.c
View file @
72287417
...
@@ -3147,15 +3147,11 @@ static const char *open_last_lookups(struct nameidata *nd,
...
@@ -3147,15 +3147,11 @@ static const char *open_last_lookups(struct nameidata *nd,
BUG_ON
(
nd
->
flags
&
LOOKUP_RCU
);
BUG_ON
(
nd
->
flags
&
LOOKUP_RCU
);
}
else
{
}
else
{
/* create side of things */
/* create side of things */
/*
if
(
nd
->
flags
&
LOOKUP_RCU
)
{
* This will *only* deal with leaving RCU mode - LOOKUP_JUMPED
error
=
unlazy_walk
(
nd
);
* has been cleared when we got to the last component we are
* about to look up
*/
error
=
complete_walk
(
nd
);
if
(
unlikely
(
error
))
if
(
unlikely
(
error
))
return
ERR_PTR
(
error
);
return
ERR_PTR
(
error
);
}
audit_inode
(
nd
->
name
,
dir
,
AUDIT_INODE_PARENT
);
audit_inode
(
nd
->
name
,
dir
,
AUDIT_INODE_PARENT
);
/* trailing slashes? */
/* trailing slashes? */
if
(
unlikely
(
nd
->
last
.
name
[
nd
->
last
.
len
]))
if
(
unlikely
(
nd
->
last
.
name
[
nd
->
last
.
len
]))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment