diff options
author | Bryan Schumaker <bjschuma@netapp.com> | 2010-10-21 22:33:16 +0200 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2010-10-23 21:27:35 +0200 |
commit | 3c8a1aeed8fd7f89bd0400fad72cbc1ac3460217 (patch) | |
tree | 7483a41703dafcbc8526c112e3e625c3a881fc99 /fs/nfs | |
parent | NFS: readdir with vmapped pages (diff) | |
download | linux-3c8a1aeed8fd7f89bd0400fad72cbc1ac3460217.tar.xz linux-3c8a1aeed8fd7f89bd0400fad72cbc1ac3460217.zip |
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/nfs')
-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) { 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); |