projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56e4ebf
)
NFS: nfs_readdir_filler catch all errors
author
Bryan Schumaker
<bjschuma@netapp.com>
Thu, 21 Oct 2010 20:33:16 +0000
(16:33 -0400)
committer
Trond Myklebust
<Trond.Myklebust@netapp.com>
Sat, 23 Oct 2010 19:27:35 +0000
(15:27 -0400)
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>
fs/nfs/dir.c
patch
|
blob
|
history
diff --git
a/fs/nfs/dir.c
b/fs/nfs/dir.c
index 5d7da3ad4e859bab8ac9dd514fcaa4fd3d51a6e4..7b8b7c59db9f546515a60e8058f3e4c75d20c21c 100644
(file)
--- 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);