Commit facc3530 authored by Al Viro's avatar Al Viro

nfs_lookup_verify_inode() - nd is *always* non-NULL here

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 93420b40
...@@ -1069,7 +1069,6 @@ int nfs_lookup_verify_inode(struct inode *inode, struct nameidata *nd) ...@@ -1069,7 +1069,6 @@ int nfs_lookup_verify_inode(struct inode *inode, struct nameidata *nd)
if (IS_AUTOMOUNT(inode)) if (IS_AUTOMOUNT(inode))
return 0; return 0;
if (nd != NULL) {
/* VFS wants an on-the-wire revalidation */ /* VFS wants an on-the-wire revalidation */
if (nd->flags & LOOKUP_REVAL) if (nd->flags & LOOKUP_REVAL)
goto out_force; goto out_force;
...@@ -1080,8 +1079,6 @@ int nfs_lookup_verify_inode(struct inode *inode, struct nameidata *nd) ...@@ -1080,8 +1079,6 @@ int nfs_lookup_verify_inode(struct inode *inode, struct nameidata *nd)
S_ISDIR(inode->i_mode))) S_ISDIR(inode->i_mode)))
goto out_force; goto out_force;
return 0; return 0;
}
return nfs_revalidate_inode(server, inode);
out_force: out_force:
return __nfs_revalidate_inode(server, inode); return __nfs_revalidate_inode(server, inode);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment