From 88c12f20895c1ad9f8173575afaa159c7f836637 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 29 Apr 2026 09:55:48 +0200 Subject: [PATCH] librbd: add missing includes Signed-off-by: Max Kellermann --- src/librbd/ImageCtx.cc | 7 +++++++ src/librbd/Operations.cc | 1 + src/librbd/api/Mirror.cc | 1 + src/librbd/internal.cc | 1 + 4 files changed, 10 insertions(+) diff --git a/src/librbd/ImageCtx.cc b/src/librbd/ImageCtx.cc index 9761a74f306e..8ac3fba4e1e5 100644 --- a/src/librbd/ImageCtx.cc +++ b/src/librbd/ImageCtx.cc @@ -9,6 +9,7 @@ #include "common/ceph_context.h" #include "common/Clock.h" // for ceph_clock_now() +#include "common/Cond.h" #include "common/dout.h" #include "common/errno.h" #include "common/perf_counters.h" @@ -48,6 +49,12 @@ #include // for std::shared_lock +#ifdef WITH_CRIMSON +#include "crimson/common/perf_counters_collection.h" +#else +#include "common/perf_counters_collection.h" +#endif + #define dout_subsys ceph_subsys_rbd #undef dout_prefix #define dout_prefix *_dout << "librbd::ImageCtx: " diff --git a/src/librbd/Operations.cc b/src/librbd/Operations.cc index e6eb96172bf8..3130a42b0e04 100644 --- a/src/librbd/Operations.cc +++ b/src/librbd/Operations.cc @@ -3,6 +3,7 @@ #include "cls/rbd/cls_rbd_types.h" #include "librbd/Operations.h" +#include "common/Cond.h" #include "common/dout.h" #include "common/errno.h" #include "common/perf_counters.h" diff --git a/src/librbd/api/Mirror.cc b/src/librbd/api/Mirror.cc index 6fa6005c6191..ccfcc41bd515 100644 --- a/src/librbd/api/Mirror.cc +++ b/src/librbd/api/Mirror.cc @@ -5,6 +5,7 @@ #include "include/rados/librados.hpp" #include "include/stringify.h" #include "common/ceph_json.h" +#include "common/Cond.h" #include "common/dout.h" #include "common/errno.h" #include "cls/rbd/cls_rbd_client.h" diff --git a/src/librbd/internal.cc b/src/librbd/internal.cc index d61ef5d45b05..d85e4b3a00ce 100644 --- a/src/librbd/internal.cc +++ b/src/librbd/internal.cc @@ -9,6 +9,7 @@ #include "include/types.h" #include "include/uuid.h" #include "common/ceph_context.h" +#include "common/Cond.h" #include "common/dout.h" #include "common/errno.h" #include "common/Throttle.h" -- 2.47.3