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:
8bbd471
)
ceph: fix a wrong comparison
author
Anton Protopopov
<a.s.protopopov@gmail.com>
Wed, 10 Feb 2016 17:38:03 +0000
(12:38 -0500)
committer
Ilya Dryomov
<idryomov@gmail.com>
Fri, 25 Mar 2016 17:51:52 +0000
(18:51 +0100)
A negative value rc compared to the positive value ENOENT in the
finish_read() function.
Signed-off-by: Anton Protopopov <a.s.protopopov@gmail.com>
Signed-off-by: Yan, Zheng <zyan@redhat.com>
fs/ceph/addr.c
patch
|
blob
|
history
diff --git
a/fs/ceph/addr.c
b/fs/ceph/addr.c
index a9f66b66ba35d8a53cb9999da069c8e10d52b5d2..c9f3050899812068c69c2232ef3e7369a45ab758 100644
(file)
--- a/
fs/ceph/addr.c
+++ b/
fs/ceph/addr.c
@@
-276,7
+276,7
@@
static void finish_read(struct ceph_osd_request *req, struct ceph_msg *msg)
for (i = 0; i < num_pages; i++) {
struct page *page = osd_data->pages[i];
- if (rc < 0 && rc != ENOENT)
+ if (rc < 0 && rc !=
-
ENOENT)
goto unlock;
if (bytes < (int)PAGE_CACHE_SIZE) {
/* zero (remainder of) page */