mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 14:42:24 +00:00
NFS: nfs_readdir_filler catch all errors
Check for all errors, not a specific one. Signed-off-by: Bryan Schumaker <bjschuma@netapp.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
parent
56e4ebf877
commit
3c8a1aeed8
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user