]> git.proxmox.com Git - ceph.git/blob - ceph/src/osd/PGQueueable.cc
update sources to v12.1.1
[ceph.git] / ceph / src / osd / PGQueueable.cc
1 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2 // vim: ts=8 sw=2 smarttab
3 /*
4 * Ceph - scalable distributed file system
5 *
6 * Copyright (C) 2016 Red Hat Inc.
7 *
8 * This is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License version 2.1, as published by the Free Software
11 * Foundation. See file COPYING.
12 *
13 */
14
15
16 #include "PG.h"
17 #include "PGQueueable.h"
18 #include "OSD.h"
19
20
21 void PGQueueable::RunVis::operator()(const OpRequestRef &op) {
22 osd->dequeue_op(pg, op, handle);
23 }
24
25 void PGQueueable::RunVis::operator()(const PGSnapTrim &op) {
26 pg->snap_trimmer(op.epoch_queued);
27 }
28
29 void PGQueueable::RunVis::operator()(const PGScrub &op) {
30 pg->scrub(op.epoch_queued, handle);
31 }
32
33 void PGQueueable::RunVis::operator()(const PGRecovery &op) {
34 osd->do_recovery(pg.get(), op.epoch_queued, op.reserved_pushes, handle);
35 }