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
980f3ea2
Commit
980f3ea2
authored
Nov 20, 2014
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
path_init(): don't bother with LOOKUP_PARENT in argument
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
893b7775
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
fs/namei.c
fs/namei.c
+4
-4
No files found.
fs/namei.c
View file @
980f3ea2
...
...
@@ -1851,7 +1851,7 @@ static int path_init(int dfd, const char *name, unsigned int flags,
int
retval
=
0
;
nd
->
last_type
=
LAST_ROOT
;
/* if there are only slashes... */
nd
->
flags
=
flags
|
LOOKUP_JUMPED
;
nd
->
flags
=
flags
|
LOOKUP_JUMPED
|
LOOKUP_PARENT
;
nd
->
depth
=
0
;
nd
->
base
=
NULL
;
if
(
flags
&
LOOKUP_ROOT
)
{
...
...
@@ -1983,7 +1983,7 @@ static int path_lookupat(int dfd, const char *name,
* be handled by restarting a traditional ref-walk (which will always
* be able to complete).
*/
err
=
path_init
(
dfd
,
name
,
flags
|
LOOKUP_PARENT
,
nd
);
err
=
path_init
(
dfd
,
name
,
flags
,
nd
);
if
(
unlikely
(
err
))
goto
out
;
...
...
@@ -2329,7 +2329,7 @@ path_mountpoint(int dfd, const char *name, struct path *path, unsigned int flags
struct
nameidata
nd
;
int
err
;
err
=
path_init
(
dfd
,
name
,
flags
|
LOOKUP_PARENT
,
&
nd
);
err
=
path_init
(
dfd
,
name
,
flags
,
&
nd
);
if
(
unlikely
(
err
))
goto
out
;
...
...
@@ -3220,7 +3220,7 @@ static struct file *path_openat(int dfd, struct filename *pathname,
goto
out
;
}
error
=
path_init
(
dfd
,
pathname
->
name
,
flags
|
LOOKUP_PARENT
,
nd
);
error
=
path_init
(
dfd
,
pathname
->
name
,
flags
,
nd
);
if
(
unlikely
(
error
))
goto
out
;
...
...
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