]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
NFS: Simplify filehandle revalidation
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 3 Oct 2007 03:13:32 +0000 (23:13 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 9 Oct 2007 21:20:20 +0000 (17:20 -0400)
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/dir.c

index d352509d7e2d7bdb23323e05795244a2994a232b..bdf4ba42abd715889cf39f5cc74b5527214b4a26 100644 (file)
@@ -704,6 +704,7 @@ int nfs_lookup_verify_inode(struct inode *inode, struct nameidata *nd)
                                (S_ISREG(inode->i_mode) ||
                                 S_ISDIR(inode->i_mode)))
                        goto out_force;
+               return 0;
        }
        return nfs_revalidate_inode(server, inode);
 out_force: