diff --git a/src/osd/PG.h b/src/osd/PG.h index f437bafbb16..3e86dd9f66d 100644 --- a/src/osd/PG.h +++ b/src/osd/PG.h @@ -64,6 +64,12 @@ class MOSDPGScan; class MOSDPGBackfill; class MOSDPGInfo; +class PG; + +void intrusive_ptr_add_ref(PG *pg); +void intrusive_ptr_release(PG *pg); + + typedef boost::intrusive_ptr PGRef; struct PGRecoveryStats { struct per_state_info { @@ -1967,9 +1973,4 @@ WRITE_CLASS_ENCODER(PG::OndiskLog) ostream& operator<<(ostream& out, const PG& pg); -void intrusive_ptr_add_ref(PG *pg); -void intrusive_ptr_release(PG *pg); - -typedef boost::intrusive_ptr PGRef; - #endif diff --git a/src/osd/ReplicatedPG.h b/src/osd/ReplicatedPG.h index cdad9dfb7d4..a21c0ce18cb 100644 --- a/src/osd/ReplicatedPG.h +++ b/src/osd/ReplicatedPG.h @@ -28,6 +28,10 @@ #include "messages/MOSDSubOp.h" class MOSDSubOpReply; +class ReplicatedPG; +void intrusive_ptr_add_ref(ReplicatedPG *pg); +void intrusive_ptr_release(ReplicatedPG *pg); + typedef boost::intrusive_ptr ReplicatedPGRef; class PGLSFilter { protected: string xattr; @@ -1021,9 +1025,4 @@ inline ostream& operator<<(ostream& out, ReplicatedPG::AccessMode& mode) return out; } -void intrusive_ptr_add_ref(ReplicatedPG *pg); -void intrusive_ptr_release(ReplicatedPG *pg); - -typedef boost::intrusive_ptr ReplicatedPGRef; - #endif