diff options
author | Bryan Schumaker <bjschuma@netapp.com> | 2010-10-21 16:33:16 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2010-10-23 15:27:35 -0400 |
commit | 3c8a1aeed8fd7f89bd0400fad72cbc1ac3460217 (patch) | |
tree | 7483a41703dafcbc8526c112e3e625c3a881fc99 /fs | |
parent | 56e4ebf877b6043c289bda32a5a7385b80c17dee (diff) |
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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/nfs/dir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c index 5d7da3ad4e85..7b8b7c59db9f 100644 --- a/fs/nfs/dir.c +++ b/fs/nfs/dir.c | |||
@@ -556,7 +556,7 @@ int nfs_readdir_filler(nfs_readdir_descriptor_t *desc, struct page* page) | |||
556 | { | 556 | { |
557 | struct inode *inode = desc->file->f_path.dentry->d_inode; | 557 | struct inode *inode = desc->file->f_path.dentry->d_inode; |
558 | 558 | ||
559 | if (nfs_readdir_xdr_to_array(desc, page, inode) == -1) | 559 | if (nfs_readdir_xdr_to_array(desc, page, inode) < 0) |
560 | goto error; | 560 | goto error; |
561 | SetPageUptodate(page); | 561 | SetPageUptodate(page); |
562 | 562 | ||