diff options
author | Anton Protopopov <a.s.protopopov@gmail.com> | 2016-02-10 12:38:03 -0500 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2016-03-25 18:51:52 +0100 |
commit | ce4355932a9412e0519e70fb1d03d88e39cd621a (patch) | |
tree | 1b3c80321d4728a5f36045d633e1b9aeea19ac81 | |
parent | 8bbd47140cf0d3f1cef882cc553778f417087606 (diff) | |
download | op-kernel-dev-ce4355932a9412e0519e70fb1d03d88e39cd621a.zip op-kernel-dev-ce4355932a9412e0519e70fb1d03d88e39cd621a.tar.gz |
ceph: fix a wrong comparison
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>
-rw-r--r-- | fs/ceph/addr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/addr.c b/fs/ceph/addr.c index a9f66b6..c9f3050 100644 --- 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 */ |