X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=net%2Fceph%2Fdebugfs.c;h=83661cdc0766de24a458d06cdede00c3f3d6a4a2;hb=e7cd7886ef0478aaab23f445e2e8cd6e0e6bdd73;hp=00d051f4894e2e0c690fcb8420263ab1aa505ca8;hpb=9f7bc6acf78af238a0b8ee0bb86ab62f1fc4f51f;p=karo-tx-linux.git diff --git a/net/ceph/debugfs.c b/net/ceph/debugfs.c index 00d051f4894e..83661cdc0766 100644 --- a/net/ceph/debugfs.c +++ b/net/ceph/debugfs.c @@ -123,8 +123,8 @@ static int osdc_show(struct seq_file *s, void *pp) mutex_lock(&osdc->request_mutex); for (p = rb_first(&osdc->requests); p; p = rb_next(p)) { struct ceph_osd_request *req; + unsigned int i; int opcode; - int i; req = rb_entry(p, struct ceph_osd_request, r_node); @@ -142,7 +142,7 @@ static int osdc_show(struct seq_file *s, void *pp) seq_printf(s, "\t"); for (i = 0; i < req->r_num_ops; i++) { - opcode = le16_to_cpu(req->r_request_ops[i].op); + opcode = req->r_ops[i].op; seq_printf(s, "\t%s", ceph_osd_op_name(opcode)); }