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
5b369df8
Commit
5b369df8
authored
Dec 24, 2009
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Get rid of passing mangled flag to do_last()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
9a66179e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
fs/namei.c
fs/namei.c
+5
-5
No files found.
fs/namei.c
View file @
5b369df8
...
...
@@ -1646,7 +1646,7 @@ static struct file *finish_open(struct nameidata *nd,
}
static
struct
file
*
do_last
(
struct
nameidata
*
nd
,
struct
path
*
path
,
int
open_flag
,
int
flag
,
int
acc_mode
,
int
open_flag
,
int
acc_mode
,
int
mode
,
const
char
*
pathname
,
int
*
is_link
)
{
...
...
@@ -1712,12 +1712,12 @@ static struct file *do_last(struct nameidata *nd, struct path *path,
audit_inode
(
pathname
,
path
->
dentry
);
error
=
-
EEXIST
;
if
(
flag
&
O_EXCL
)
if
(
open_
flag
&
O_EXCL
)
goto
exit_dput
;
if
(
__follow_mount
(
path
))
{
error
=
-
ELOOP
;
if
(
flag
&
O_NOFOLLOW
)
if
(
open_
flag
&
O_NOFOLLOW
)
goto
exit_dput
;
}
...
...
@@ -1845,7 +1845,7 @@ struct file *do_filp_open(int dfd, const char *pathname,
nd
.
flags
|=
LOOKUP_CREATE
|
LOOKUP_OPEN
;
if
(
flag
&
O_EXCL
)
nd
.
flags
|=
LOOKUP_EXCL
;
filp
=
do_last
(
&
nd
,
&
path
,
open_flag
,
flag
,
acc_mode
,
mode
,
filp
=
do_last
(
&
nd
,
&
path
,
open_flag
,
acc_mode
,
mode
,
pathname
,
&
is_link
);
if
(
is_link
)
goto
do_link
;
...
...
@@ -1907,7 +1907,7 @@ struct file *do_filp_open(int dfd, const char *pathname,
nd
.
flags
&=
~
LOOKUP_PARENT
;
if
(
nd
.
last_type
==
LAST_BIND
)
goto
ok
;
filp
=
do_last
(
&
nd
,
&
path
,
open_flag
,
flag
,
acc_mode
,
mode
,
filp
=
do_last
(
&
nd
,
&
path
,
open_flag
,
acc_mode
,
mode
,
pathname
,
&
is_link
);
if
(
nd
.
last_type
==
LAST_NORM
)
__putname
(
nd
.
last
.
name
);
...
...
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