]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: add missing includes
authorMax Kellermann <max.kellermann@ionos.com>
Fri, 25 Apr 2025 14:41:33 +0000 (16:41 +0200)
committerMax Kellermann <max.kellermann@ionos.com>
Thu, 28 Aug 2025 09:21:07 +0000 (11:21 +0200)
Signed-off-by: Max Kellermann <max.kellermann@ionos.com>
src/common/scrub_types.h
src/osd/ClassHandler.cc
src/osd/DynamicPerfStats.h
src/osd/OSDMapMapping.h
src/osd/PG.h
src/osd/PrimaryLogPG.h

index d86fc12b6c8cff90998fb209629757eab2fb5a49..9f539ccb81434eee5aa6ae1bdacbe362e4c7209d 100644 (file)
@@ -4,8 +4,14 @@
 #ifndef CEPH_SCRUB_TYPES_H
 #define CEPH_SCRUB_TYPES_H
 
+#include <cstdint>
+#include <map>
+#include <vector>
+
 #include <fmt/ranges.h>
 
+#include "include/buffer.h"
+#include "include/types.h" // for epoch_t
 #include "osd/osd_types.h"
 
 // wrappers around scrub types to offer the necessary bits other than
index fc83391699eba5c0d7c53e1b164362efd33faa95..ba2bd3c116fc4ef12bcb4d85de05b54bef3a1dc0 100644 (file)
@@ -7,6 +7,9 @@
 #include "common/ceph_context.h"
 #include "include/dlfcn_compat.h"
 
+#include <sys/types.h>
+#include <dirent.h>
+
 #include <map>
 
 #if defined(__FreeBSD__)
index 4277973514e604a8472643544069bb163f7310c7..b056da695c8eb926a005f343e928078111249afa 100644 (file)
@@ -4,7 +4,13 @@
 #ifndef DYNAMIC_PERF_STATS_H
 #define DYNAMIC_PERF_STATS_H
 
+#include <list>
+#include <map>
+#include <string>
+#include <vector>
+
 #include "include/random.h"
+#include "include/stringify.h"
 #include "messages/MOSDOp.h"
 #include "mgr/OSDPerfMetricTypes.h"
 
index 40193b582f613ffec99908346b66532ef475f306..58f82b3968c5225263779173432771db249bcb00 100644 (file)
@@ -10,6 +10,7 @@
 
 #include "osd/osd_types.h"
 #include "common/WorkQueue.h"
+#include "common/Clock.h" // for ceph_clock_now()
 #include "common/Cond.h"
 
 class OSDMap;
index 84c88efc301e47004d121dd27010843ab3871bfa..3bef1c8c5e4426bdd7efaa7da143517099694fe0 100644 (file)
@@ -20,7 +20,7 @@
 #include "include/mempool.h"
 
 // re-include our assert to clobber boost's
-#include "common/admin_finisher.h"
+#include "common/admin_finisher.h" // for asok_finisher
 #include "include/ceph_assert.h" 
 #include "include/common_fwd.h"
 
@@ -49,6 +49,7 @@
 #include <memory>
 #include <string>
 #include <tuple>
+#include <vector>
 
 //#define DEBUG_RECOVERY_OIDS   // track std::set of recovering oids explicitly, to find counting bugs
 //#define PG_DEBUG_REFS    // track provenance of pg refs, helpful for finding leaks
@@ -78,6 +79,7 @@ namespace Scrub {
   void put_with_id(PG *pg, uint64_t id);
   typedef TrackedIntPtr<PG> PGRef;
 #else
+#include <boost/intrusive_ptr.hpp>
   typedef boost::intrusive_ptr<PG> PGRef;
 #endif
 
index 3dcaaa9b46bdd831b23500ee3cec1703e2b7b2e3..59cb7c54676c3b44b00c5809fec7549850f18473 100644 (file)
@@ -19,6 +19,7 @@
 
 #include <boost/tuple/tuple.hpp>
 #include "include/ceph_assert.h"
+#include "include/types.h" // for client_t
 #include "DynamicPerfStats.h"
 #include "OSD.h"
 #include "PG.h"