Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
57fa76f2
Commit
57fa76f2
authored
Sep 30, 2007
by
Trond Myklebust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NFS: Don't use readdirplus data if the page cache is invalid
Signed-off-by:
Trond Myklebust
<
Trond.Myklebust@netapp.com
>
parent
47aabaa7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
fs/nfs/dir.c
fs/nfs/dir.c
+10
-1
No files found.
fs/nfs/dir.c
View file @
57fa76f2
...
...
@@ -1110,6 +1110,7 @@ static struct dentry *nfs_readdir_lookup(nfs_readdir_descriptor_t *desc)
.
len
=
entry
->
len
,
};
struct
inode
*
inode
;
unsigned
long
verf
=
nfs_save_change_attribute
(
dir
);
switch
(
name
.
len
)
{
case
2
:
...
...
@@ -1120,6 +1121,14 @@ static struct dentry *nfs_readdir_lookup(nfs_readdir_descriptor_t *desc)
if
(
name
.
name
[
0
]
==
'.'
)
return
dget
(
parent
);
}
spin_lock
(
&
dir
->
i_lock
);
if
(
NFS_I
(
dir
)
->
cache_validity
&
NFS_INO_INVALID_DATA
)
{
spin_unlock
(
&
dir
->
i_lock
);
return
NULL
;
}
spin_unlock
(
&
dir
->
i_lock
);
name
.
hash
=
full_name_hash
(
name
.
name
,
name
.
len
);
dentry
=
d_lookup
(
parent
,
&
name
);
if
(
dentry
!=
NULL
)
{
...
...
@@ -1161,7 +1170,7 @@ static struct dentry *nfs_readdir_lookup(nfs_readdir_descriptor_t *desc)
}
out_renew:
nfs_set_verifier
(
dentry
,
nfs_save_change_attribute
(
dir
)
);
nfs_set_verifier
(
dentry
,
verf
);
return
dentry
;
}
...
...
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