Since above classes are implementation detail of OSD class move them
to the .cc file.
Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
};
+class OSD::C_Tick : public Context {
+ OSD *osd;
+ public:
+ explicit C_Tick(OSD *o) : osd(o) {}
+ void finish(int r) {
+ osd->tick();
+ }
+};
+
+class OSD::C_Tick_WithoutOSDLock : public Context {
+ OSD *osd;
+ public:
+ explicit C_Tick_WithoutOSDLock(OSD *o) : osd(o) {}
+ void finish(int r) {
+ osd->tick_without_osd_lock();
+ }
+};
+
int OSD::enable_disable_fuse(bool stop)
{
#ifdef HAVE_LIBFUSE
return 0;
}
+
void OSD::write_superblock(ObjectStore::Transaction& t)
{
dout(10) << "write_superblock " << superblock << dendl;
int whoami;
std::string dev_path, journal_path;
- class C_Tick : public Context {
- OSD *osd;
- public:
- explicit C_Tick(OSD *o) : osd(o) {}
- void finish(int r) {
- osd->tick();
- }
- };
-
- class C_Tick_WithoutOSDLock : public Context {
- OSD *osd;
- public:
- explicit C_Tick_WithoutOSDLock(OSD *o) : osd(o) {}
- void finish(int r) {
- osd->tick_without_osd_lock();
- }
- };
-
Cond dispatch_cond;
bool dispatch_running;
private:
+ class C_Tick;
+ class C_Tick_WithoutOSDLock;
+
// -- superblock --
OSDSuperblock superblock;