From: Kefu Chai Date: Fri, 12 Mar 2021 07:13:24 +0000 (+0800) Subject: osd/PG: do not include unused headers X-Git-Tag: v17.1.0~2622^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=aa896fd267260da8289b985f3465d416568dd3d2;p=ceph.git osd/PG: do not include unused headers neither MOSDPGNotify nor MOSDPGInfo is used in PG.cc, so drop the corresponding headers. the same appiles to some other types and headers declared and included in PG.h Signed-off-by: Kefu Chai --- diff --git a/src/osd/PG.cc b/src/osd/PG.cc index 343d9dcddfd3..bbb1085905f4 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -29,8 +29,6 @@ #include "common/perf_counters.h" #include "messages/MOSDOp.h" -#include "messages/MOSDPGNotify.h" -#include "messages/MOSDPGInfo.h" #include "messages/MOSDPGScan.h" #include "messages/MOSDPGBackfill.h" #include "messages/MOSDPGBackfillRemove.h" diff --git a/src/osd/PG.h b/src/osd/PG.h index c7dc441e3c3d..4b151c7825bf 100644 --- a/src/osd/PG.h +++ b/src/osd/PG.h @@ -33,7 +33,6 @@ #include "PGLog.h" #include "OSDMap.h" -#include "messages/MOSDPGLog.h" #include "include/str_list.h" #include "PGBackend.h" #include "PGPeeringEvent.h" @@ -57,14 +56,10 @@ class OSD; class OSDService; class OSDShard; class OSDShardPGSlot; -class MOSDPGScan; -class MOSDPGBackfill; -class MOSDPGInfo; class PG; struct OpRequest; typedef OpRequest::Ref OpRequestRef; -class MOSDPGLog; class DynamicPerfStats; class PgScrubber; diff --git a/src/osd/PrimaryLogPG.cc b/src/osd/PrimaryLogPG.cc index b563dbf2eb89..9886cdf80cdc 100644 --- a/src/osd/PrimaryLogPG.cc +++ b/src/osd/PrimaryLogPG.cc @@ -41,6 +41,7 @@ #include "messages/MOSDRepScrub.h" #include "messages/MOSDPGBackfill.h" #include "messages/MOSDPGBackfillRemove.h" +#include "messages/MOSDPGLog.h" #include "messages/MOSDPGUpdateLogMissing.h" #include "messages/MOSDPGUpdateLogMissingReply.h" #include "messages/MCommandReply.h"