Lines Matching defs:err
6 #include <linux/err.h>
2395 static void complete_request(struct ceph_osd_request *req, int err);
2403 int err = 0;
2423 err = osdc->abort_err;
2446 err = -ENOSPC;
2472 else if (err)
2473 complete_request(req, err);
2476 if (!err && ct_res == CALC_TARGET_POOL_DNE)
2557 static void complete_request(struct ceph_osd_request *req, int err)
2559 dout("%s req %p tid %llu err %d\n", __func__, req, req->r_tid, err);
2561 req->r_result = err;
2594 static void abort_request(struct ceph_osd_request *req, int err)
2596 dout("%s req %p tid %llu err %d\n", __func__, req, req->r_tid, err);
2599 complete_request(req, err);
2604 int err = *(int *)arg;
2606 abort_request(req, err);
2611 * Abort all in-flight requests with @err and arrange for all future
2614 void ceph_osdc_abort_requests(struct ceph_osd_client *osdc, int err)
2616 dout("%s osdc %p err %d\n", __func__, osdc, err);
2618 for_each_request(osdc, abort_fn, &err);
2619 osdc->abort_err = err;
2957 int err;
3036 dout("%s lreq %p err %d\n", __func__, lreq, lwork->error.err);
3037 lreq->errcb(lreq->data, lreq->linger_id, lwork->error.err);
3053 lwork->error.err = lreq->last_error;
3105 static int normalize_watch_error(int err)
3112 if (err == -ENOENT)
3113 err = -ENOTCONN;
3115 return err;
4163 int err;
4191 err = handle_one_map(osdc, p, p + maplen, true,
4193 if (err)
4223 err = handle_one_map(osdc, p, p + maplen, false,
4225 if (err)
5249 int err;
5267 err = -ENOMEM;
5277 err = ceph_msgpool_init(&osdc->msgpool_op, CEPH_MSG_OSD_OP,
5279 if (err < 0)
5281 err = ceph_msgpool_init(&osdc->msgpool_op_reply, CEPH_MSG_OSD_OPREPLY,
5284 if (err < 0)
5287 err = -ENOMEM;
5314 return err;