]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
kclient: fix data skip arithmetic
authorSage Weil <sage@newdream.net>
Wed, 19 Aug 2009 20:51:07 +0000 (13:51 -0700)
committerSage Weil <sage@newdream.net>
Wed, 19 Aug 2009 20:52:18 +0000 (13:52 -0700)
src/kernel/messenger.c

index 3b31a6edefd074eb0edc4a3773f14d434348a657..3362e875a89d89349ea92b66fba08c3e04606879 100644 (file)
@@ -1536,9 +1536,9 @@ static int read_partial_message(struct ceph_connection *con)
                           (int)(PAGE_SIZE - con->in_msg_pos.page_pos));
                mutex_lock(&m->page_mutex);
                if (!m->pages) {
-                       dout("pages revoked during msg read\n");
+                       dout("%p pages revoked during msg read\n", m);
                        mutex_unlock(&m->page_mutex);
-                       con->in_base_pos = middle_len - con->in_msg_pos.data_pos
+                       con->in_base_pos = con->in_msg_pos.data_pos
                                - data_len - sizeof(m->footer);
                        ceph_msg_put(m);
                        con->in_msg = NULL;