Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
linux-seco-imx
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Jira
Code
Merge requests
12
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Clea OS
bsp
nxp
linux-seco-imx
Commits
201f956e
Commit
201f956e
authored
12 years ago
by
Al Viro
Browse files
Options
Downloads
Patches
Plain Diff
fs/namei.c: don't pass namedata to lookup_dcache()
just the flags... Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
4ce16ef3
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
fs/namei.c
+4
-4
4 additions, 4 deletions
fs/namei.c
with
4 additions
and
4 deletions
fs/namei.c
+
4
−
4
View file @
201f956e
...
@@ -1039,7 +1039,7 @@ static void follow_dotdot(struct nameidata *nd)
...
@@ -1039,7 +1039,7 @@ static void follow_dotdot(struct nameidata *nd)
* dir->d_inode->i_mutex must be held
* dir->d_inode->i_mutex must be held
*/
*/
static
struct
dentry
*
lookup_dcache
(
struct
qstr
*
name
,
struct
dentry
*
dir
,
static
struct
dentry
*
lookup_dcache
(
struct
qstr
*
name
,
struct
dentry
*
dir
,
struct
nameidata
*
nd
,
bool
*
need_lookup
)
unsigned
int
flags
,
bool
*
need_lookup
)
{
{
struct
dentry
*
dentry
;
struct
dentry
*
dentry
;
int
error
;
int
error
;
...
@@ -1050,7 +1050,7 @@ static struct dentry *lookup_dcache(struct qstr *name, struct dentry *dir,
...
@@ -1050,7 +1050,7 @@ static struct dentry *lookup_dcache(struct qstr *name, struct dentry *dir,
if
(
d_need_lookup
(
dentry
))
{
if
(
d_need_lookup
(
dentry
))
{
*
need_lookup
=
true
;
*
need_lookup
=
true
;
}
else
if
(
dentry
->
d_flags
&
DCACHE_OP_REVALIDATE
)
{
}
else
if
(
dentry
->
d_flags
&
DCACHE_OP_REVALIDATE
)
{
error
=
d_revalidate
(
dentry
,
nd
?
nd
->
flags
:
0
);
error
=
d_revalidate
(
dentry
,
flags
);
if
(
unlikely
(
error
<=
0
))
{
if
(
unlikely
(
error
<=
0
))
{
if
(
error
<
0
)
{
if
(
error
<
0
)
{
dput
(
dentry
);
dput
(
dentry
);
...
@@ -1104,7 +1104,7 @@ static struct dentry *__lookup_hash(struct qstr *name,
...
@@ -1104,7 +1104,7 @@ static struct dentry *__lookup_hash(struct qstr *name,
bool
need_lookup
;
bool
need_lookup
;
struct
dentry
*
dentry
;
struct
dentry
*
dentry
;
dentry
=
lookup_dcache
(
name
,
base
,
nd
,
&
need_lookup
);
dentry
=
lookup_dcache
(
name
,
base
,
nd
?
nd
->
flags
:
0
,
&
need_lookup
);
if
(
!
need_lookup
)
if
(
!
need_lookup
)
return
dentry
;
return
dentry
;
...
@@ -2356,7 +2356,7 @@ static int lookup_open(struct nameidata *nd, struct path *path,
...
@@ -2356,7 +2356,7 @@ static int lookup_open(struct nameidata *nd, struct path *path,
bool
need_lookup
;
bool
need_lookup
;
*
opened
&=
~
FILE_CREATED
;
*
opened
&=
~
FILE_CREATED
;
dentry
=
lookup_dcache
(
&
nd
->
last
,
dir
,
nd
,
&
need_lookup
);
dentry
=
lookup_dcache
(
&
nd
->
last
,
dir
,
nd
->
flags
,
&
need_lookup
);
if
(
IS_ERR
(
dentry
))
if
(
IS_ERR
(
dentry
))
return
PTR_ERR
(
dentry
);
return
PTR_ERR
(
dentry
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment