]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
libceph: remove req->r_replay_version
authorJeff Layton <jlayton@redhat.com>
Tue, 4 Apr 2017 12:39:36 +0000 (08:39 -0400)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 4 May 2017 07:19:20 +0000 (09:19 +0200)
Nothing uses this anymore with the removal of the ack vs. commit code.
Remove the field and just encode zeroes into place in the request
encoding.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
include/linux/ceph/osd_client.h
net/ceph/debugfs.c
net/ceph/osd_client.c

index d6a625e750408eda472ef3707adde76dd5fcf9d3..3fc9e7754a9b03428b3508c92fca782d1e062d98 100644 (file)
@@ -192,7 +192,6 @@ struct ceph_osd_request {
        unsigned long r_stamp;                /* jiffies, send or check time */
        unsigned long r_start_stamp;          /* jiffies */
        int r_attempts;
-       struct ceph_eversion r_replay_version; /* aka reassert_version */
        u32 r_last_force_resend;
        u32 r_map_dne_bound;
 
index c62b2b029a6e6fe66fa3440551d0602fc8c4123e..d7e63a4f5578061ddc8ab5614e03ea31875b51f8 100644 (file)
@@ -177,9 +177,7 @@ static void dump_request(struct seq_file *s, struct ceph_osd_request *req)
        seq_printf(s, "%llu\t", req->r_tid);
        dump_target(s, &req->r_t);
 
-       seq_printf(s, "\t%d\t%u'%llu", req->r_attempts,
-                  le32_to_cpu(req->r_replay_version.epoch),
-                  le64_to_cpu(req->r_replay_version.version));
+       seq_printf(s, "\t%d", req->r_attempts);
 
        for (i = 0; i < req->r_num_ops; i++) {
                struct ceph_osd_req_op *op = &req->r_ops[i];
index b4500a8ab8b3634e436e49ab55578f1435e65a23..feb666c2238109b034566b4a057b276b6dcbabd5 100644 (file)
@@ -1503,9 +1503,10 @@ static void encode_request(struct ceph_osd_request *req, struct ceph_msg *msg)
        ceph_encode_32(&p, req->r_flags);
        ceph_encode_timespec(p, &req->r_mtime);
        p += sizeof(struct ceph_timespec);
-       /* aka reassert_version */
-       memcpy(p, &req->r_replay_version, sizeof(req->r_replay_version));
-       p += sizeof(req->r_replay_version);
+
+       /* reassert_version */
+       memset(p, 0, sizeof(struct ceph_eversion));
+       p += sizeof(struct ceph_eversion);
 
        /* oloc */
        ceph_start_encoding(&p, 5, 4,