浏览代码

NFS: Simplify filehandle revalidation

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Trond Myklebust 17 年之前
父节点
当前提交
4f48af4584
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      fs/nfs/dir.c

+ 1 - 0
fs/nfs/dir.c

@@ -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: