提交 3c8a1aee 编写于 作者: B Bryan Schumaker 提交者: Trond Myklebust

NFS: nfs_readdir_filler catch all errors

Check for all errors, not a specific one.
Signed-off-by: NBryan Schumaker <bjschuma@netapp.com>
Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
上级 56e4ebf8
......@@ -556,7 +556,7 @@ int nfs_readdir_filler(nfs_readdir_descriptor_t *desc, struct page* page)
{
struct inode *inode = desc->file->f_path.dentry->d_inode;
if (nfs_readdir_xdr_to_array(desc, page, inode) == -1)
if (nfs_readdir_xdr_to_array(desc, page, inode) < 0)
goto error;
SetPageUptodate(page);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册