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
efbb06b7
Commit
efbb06b7
authored
Oct 02, 2007
by
Trond Myklebust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NFS: Remove the redundant nfs_reval_fsid()
Signed-off-by:
Trond Myklebust
<
Trond.Myklebust@netapp.com
>
parent
81c76880
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
15 deletions
+0
-15
fs/nfs/dir.c
fs/nfs/dir.c
+0
-15
No files found.
fs/nfs/dir.c
View file @
efbb06b7
...
...
@@ -864,16 +864,6 @@ int nfs_is_exclusive_create(struct inode *dir, struct nameidata *nd)
return
(
nd
->
intent
.
open
.
flags
&
O_EXCL
)
!=
0
;
}
static
inline
int
nfs_reval_fsid
(
struct
inode
*
dir
,
const
struct
nfs_fattr
*
fattr
)
{
struct
nfs_server
*
server
=
NFS_SERVER
(
dir
);
if
(
!
nfs_fsid_equal
(
&
server
->
fsid
,
&
fattr
->
fsid
))
/* Revalidate fsid using the parent directory */
return
__nfs_revalidate_inode
(
server
,
dir
);
return
0
;
}
static
struct
dentry
*
nfs_lookup
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
struct
nameidata
*
nd
)
{
struct
dentry
*
res
;
...
...
@@ -912,11 +902,6 @@ static struct dentry *nfs_lookup(struct inode *dir, struct dentry * dentry, stru
res
=
ERR_PTR
(
error
);
goto
out_unlock
;
}
error
=
nfs_reval_fsid
(
dir
,
&
fattr
);
if
(
error
<
0
)
{
res
=
ERR_PTR
(
error
);
goto
out_unlock
;
}
inode
=
nfs_fhget
(
dentry
->
d_sb
,
&
fhandle
,
&
fattr
);
res
=
(
struct
dentry
*
)
inode
;
if
(
IS_ERR
(
res
))
...
...
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