Lines Matching defs:operation
445 int operation)
450 if ((operation != REQ_OP_READ) && vbd->readonly)
683 pending_req->operation, pending_req->status);
908 (pending_req->operation != BLKIF_OP_READ));
1004 make_response(ring, req->u.discard.id, req->operation, status);
1014 make_response(ring, req->u.other.id, req->operation,
1040 if (pending_req->operation == BLKIF_OP_FLUSH_DISKCACHE &&
1045 } else if (pending_req->operation == BLKIF_OP_WRITE_BARRIER &&
1051 pr_debug("Buffer not up-to-date at end of operation,"
1138 switch (req.operation) {
1195 int operation;
1202 req_operation = req->operation == BLKIF_OP_INDIRECT ?
1203 req->u.indirect.indirect_op : req->operation;
1205 if ((req->operation == BLKIF_OP_INDIRECT) &&
1208 pr_debug("Invalid indirect operation (%u)\n", req_operation);
1215 operation = REQ_OP_READ;
1219 operation = REQ_OP_WRITE;
1227 operation = REQ_OP_WRITE;
1231 operation = 0; /* make gcc happy */
1237 nseg = req->operation == BLKIF_OP_INDIRECT ?
1241 unlikely((req->operation != BLKIF_OP_INDIRECT) &&
1243 unlikely((req->operation == BLKIF_OP_INDIRECT) &&
1254 pending_req->operation = req_operation;
1258 if (req->operation != BLKIF_OP_INDIRECT) {
1279 if (xen_vbd_translate(&preq, ring->blkif, operation) != 0) {
1281 operation == REQ_OP_READ ? "read" : "write",
1340 bio_set_op_attrs(bio, operation, operation_flags);
1346 /* This will be hit if the operation was a flush or discard. */
1358 bio_set_op_attrs(bio, operation, operation_flags);
1370 if (operation == REQ_OP_READ)
1372 else if (operation == REQ_OP_WRITE)
1399 * Put a response on the ring on how the operation fared.
1430 resp->operation = op;