提交 85f8607e 编写于 作者: T Trond Myklebust

NFS: Fix the error handling in "uncached_readdir()"

Currently, uncached_readdir() is broken because if fails to handle
the results from nfs_readdir_xdr_to_array() correctly.
Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
上级 7a8e1dc3
......@@ -766,10 +766,9 @@ int uncached_readdir(nfs_readdir_descriptor_t *desc, void *dirent,
desc->page_index = 0;
desc->page = page;
if (nfs_readdir_xdr_to_array(desc, page, inode) == -1) {
status = -EIO;
status = nfs_readdir_xdr_to_array(desc, page, inode);
if (status < 0)
goto out_release;
}
status = nfs_do_filldir(desc, dirent, filldir);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册