Lines Matching refs:op

64  * fill osd op in request message.
280 struct ceph_osd_req_op *op;
283 op = &osd_req->r_ops[which];
285 switch (op->op) {
288 ceph_osd_data_release(&op->extent.osd_data);
291 ceph_osd_data_release(&op->cls.request_info);
292 ceph_osd_data_release(&op->cls.request_data);
293 ceph_osd_data_release(&op->cls.response_data);
434 #define GENERATE_CASE(op, opcode, str) case CEPH_OSD_OP_##op: return true;
443 * This is an osd op init function for opcodes that have no data or
451 struct ceph_osd_req_op *op;
456 op = &osd_req->r_ops[which];
457 memset(op, 0, sizeof (*op));
458 op->op = opcode;
460 return op;
475 struct ceph_osd_req_op *op = _osd_req_op_init(osd_req, which, opcode);
482 op->extent.offset = offset;
483 op->extent.length = length;
484 op->extent.truncate_size = truncate_size;
485 op->extent.truncate_seq = truncate_seq;
489 op->payload_len = payload_len;
496 struct ceph_osd_req_op *op;
500 op = &osd_req->r_ops[which];
501 previous = op->extent.length;
507 op->extent.length = length;
508 op->payload_len -= previous - length;
515 struct ceph_osd_req_op *op = _osd_req_op_init(osd_req, which, opcode);
526 op->cls.class_name = class;
529 op->cls.class_len = size;
533 op->cls.method_name = method;
536 op->cls.method_len = size;
542 op->cls.argc = 0; /* currently unused */
544 op->payload_len = payload_len;
552 struct ceph_osd_req_op *op = _osd_req_op_init(osd_req, which, opcode);
556 op->watch.cookie = cookie;
557 op->watch.ver = version;
559 op->watch.flag = (u8)1;
568 struct ceph_osd_req_op *op = _osd_req_op_init(osd_req, which,
571 op->alloc_hint.expected_object_size = expected_object_size;
572 op->alloc_hint.expected_write_size = expected_write_size;
575 * CEPH_OSD_OP_SETALLOCHINT op is advisory and therefore deemed
576 * not worth a feature bit. Set FAILOK per-op flag to make
579 op->flags |= CEPH_OSD_OP_FLAG_FAILOK;
615 if (WARN_ON(!osd_req_opcode_valid(src->op))) {
616 pr_err("unrecognized osd opcode %d\n", src->op);
621 switch (src->op) {
631 if (src->op == CEPH_OSD_OP_WRITE)
640 if (src->op == CEPH_OSD_OP_WRITE)
681 ceph_osd_op_name(src->op));
687 dst->op = cpu_to_le16(src->op);
757 * A second op in the ops array means the caller wants to
846 * the dup op detection logic on the OSDs. Achieve this with
1687 * handle osd op reply. either call the callback if it is specified,
1755 struct ceph_osd_op *op = p;
1758 len = le32_to_cpu(op->payload_len);
1760 dout(" op %d has %d bytes\n", i, len);
1762 p += sizeof(*op);
1766 pr_warn("sum of op payload lens %d != data_len %d\n",
2801 * XXX This is assuming there is only one op containing