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
957ca757
Commit
957ca757
authored
Aug 21, 2003
by
Trond Myklebust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a problem whereby READDIRPLUS was causing lookups to result in
ESTALE errors.
parent
5579cbd6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
fs/nfs/dir.c
fs/nfs/dir.c
+4
-2
No files found.
fs/nfs/dir.c
View file @
957ca757
...
@@ -557,7 +557,7 @@ static int nfs_lookup_revalidate(struct dentry * dentry, struct nameidata *nd)
...
@@ -557,7 +557,7 @@ static int nfs_lookup_revalidate(struct dentry * dentry, struct nameidata *nd)
/* Force a full look up iff the parent directory has changed */
/* Force a full look up iff the parent directory has changed */
if
(
nfs_check_verifier
(
dir
,
dentry
))
{
if
(
nfs_check_verifier
(
dir
,
dentry
))
{
if
(
nfs_lookup_verify_inode
(
inode
,
isopen
))
if
(
nfs_lookup_verify_inode
(
inode
,
isopen
))
goto
out_
bad
;
goto
out_
zap_parent
;
goto
out_valid
;
goto
out_valid
;
}
}
...
@@ -566,7 +566,7 @@ static int nfs_lookup_revalidate(struct dentry * dentry, struct nameidata *nd)
...
@@ -566,7 +566,7 @@ static int nfs_lookup_revalidate(struct dentry * dentry, struct nameidata *nd)
if
(
memcmp
(
NFS_FH
(
inode
),
&
fhandle
,
sizeof
(
struct
nfs_fh
))
!=
0
)
if
(
memcmp
(
NFS_FH
(
inode
),
&
fhandle
,
sizeof
(
struct
nfs_fh
))
!=
0
)
goto
out_bad
;
goto
out_bad
;
if
(
nfs_lookup_verify_inode
(
inode
,
isopen
))
if
(
nfs_lookup_verify_inode
(
inode
,
isopen
))
goto
out_
bad
;
goto
out_
zap_parent
;
goto
out_valid_renew
;
goto
out_valid_renew
;
}
}
...
@@ -587,6 +587,8 @@ static int nfs_lookup_revalidate(struct dentry * dentry, struct nameidata *nd)
...
@@ -587,6 +587,8 @@ static int nfs_lookup_revalidate(struct dentry * dentry, struct nameidata *nd)
unlock_kernel
();
unlock_kernel
();
dput
(
parent
);
dput
(
parent
);
return
1
;
return
1
;
out_zap_parent:
nfs_zap_caches
(
dir
);
out_bad:
out_bad:
NFS_CACHEINV
(
dir
);
NFS_CACHEINV
(
dir
);
if
(
inode
&&
S_ISDIR
(
inode
->
i_mode
))
{
if
(
inode
&&
S_ISDIR
(
inode
->
i_mode
))
{
...
...
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