Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit facc3530 authored by Al Viro's avatar Al Viro
Browse files

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



Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 93420b40
Loading
Loading
Loading
Loading
+10 −13
Original line number Diff line number Diff line
@@ -1069,7 +1069,6 @@ int nfs_lookup_verify_inode(struct inode *inode, struct nameidata *nd)

	if (IS_AUTOMOUNT(inode))
		return 0;
	if (nd != NULL) {
	/* VFS wants an on-the-wire revalidation */
	if (nd->flags & LOOKUP_REVAL)
		goto out_force;
@@ -1080,8 +1079,6 @@ int nfs_lookup_verify_inode(struct inode *inode, struct nameidata *nd)
			 S_ISDIR(inode->i_mode)))
		goto out_force;
	return 0;
	}
	return nfs_revalidate_inode(server, inode);
out_force:
	return __nfs_revalidate_inode(server, inode);
}