From: Max Kellermann Date: Fri, 25 Apr 2025 16:50:21 +0000 (+0200) Subject: librbd: add missing includes X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=fd25ad65277f4d22b2490bfe092254a15a3ac440;p=ceph.git librbd: add missing includes Signed-off-by: Max Kellermann --- diff --git a/src/librbd/ImageCtx.cc b/src/librbd/ImageCtx.cc index f7d6120b1d19..0c32a75c1fda 100644 --- a/src/librbd/ImageCtx.cc +++ b/src/librbd/ImageCtx.cc @@ -7,6 +7,7 @@ #include "include/neorados/RADOS.hpp" #include "common/ceph_context.h" +#include "common/Clock.h" // for ceph_clock_now() #include "common/dout.h" #include "common/errno.h" #include "common/perf_counters.h" diff --git a/src/librbd/ImageWatcher.cc b/src/librbd/ImageWatcher.cc index 69e8403af838..32bbb0d69acf 100644 --- a/src/librbd/ImageWatcher.cc +++ b/src/librbd/ImageWatcher.cc @@ -14,7 +14,9 @@ #include "librbd/image_watcher/NotifyLockOwner.h" #include "librbd/io/AioCompletion.h" #include "include/encoding.h" +#include "common/Clock.h" // for ceph_clock_now() #include "common/errno.h" +#include "common/perf_counters.h" #include #include // for std::shared_lock diff --git a/src/librbd/Journal.cc b/src/librbd/Journal.cc index ab65007d9ad8..2200ae8e4eb0 100644 --- a/src/librbd/Journal.cc +++ b/src/librbd/Journal.cc @@ -4,6 +4,7 @@ #include "librbd/Journal.h" #include "include/rados/librados.hpp" #include "common/AsyncOpTracker.h" +#include "common/Clock.h" // for ceph_clock_now() #include "common/errno.h" #include "common/Timer.h" #include "common/WorkQueue.h" diff --git a/src/librbd/api/DiffIterate.cc b/src/librbd/api/DiffIterate.cc index 1fbdeea483ea..9c82efa010de 100644 --- a/src/librbd/api/DiffIterate.cc +++ b/src/librbd/api/DiffIterate.cc @@ -14,6 +14,7 @@ #include "librbd/object_map/DiffRequest.h" #include "include/rados/librados.hpp" #include "include/interval_set.h" +#include "common/Clock.h" // for ceph_clock_now() #include "common/errno.h" #include "common/Cond.h" #include "common/Throttle.h" diff --git a/src/librbd/api/PoolMetadata.cc b/src/librbd/api/PoolMetadata.cc index 33e3fb6486f9..8cf5eb945213 100644 --- a/src/librbd/api/PoolMetadata.cc +++ b/src/librbd/api/PoolMetadata.cc @@ -3,6 +3,7 @@ #include "librbd/api/PoolMetadata.h" #include "cls/rbd/cls_rbd_client.h" +#include "common/Clock.h" // for ceph_clock_now() #include "common/dout.h" #include "common/errno.h" #include "common/Cond.h" diff --git a/src/librbd/api/Trash.cc b/src/librbd/api/Trash.cc index bc7523285af1..77cb0e94ea69 100644 --- a/src/librbd/api/Trash.cc +++ b/src/librbd/api/Trash.cc @@ -3,6 +3,7 @@ #include "librbd/api/Trash.h" #include "include/rados/librados.hpp" +#include "common/Clock.h" // for ceph_clock_now() #include "common/dout.h" #include "common/errno.h" #include "common/Cond.h" diff --git a/src/librbd/cache/ObjectCacherObjectDispatch.cc b/src/librbd/cache/ObjectCacherObjectDispatch.cc index cd081d58d0d6..6ee8b6073c8a 100644 --- a/src/librbd/cache/ObjectCacherObjectDispatch.cc +++ b/src/librbd/cache/ObjectCacherObjectDispatch.cc @@ -4,6 +4,7 @@ #include "librbd/cache/ObjectCacherObjectDispatch.h" #include "include/neorados/RADOS.hpp" #include "common/errno.h" +#include "common/perf_counters.h" #include "librbd/ImageCtx.h" #include "librbd/Journal.h" #include "librbd/Utils.h" diff --git a/src/librbd/cache/pwl/ssd/LogEntry.cc b/src/librbd/cache/pwl/ssd/LogEntry.cc index 0e6edd87b35c..9e1b9101a7f5 100644 --- a/src/librbd/cache/pwl/ssd/LogEntry.cc +++ b/src/librbd/cache/pwl/ssd/LogEntry.cc @@ -4,6 +4,8 @@ #include "librbd/cache/ImageWriteback.h" #include "librbd/cache/pwl/ssd/LogEntry.h" +#include "include/intarith.h" // for round_up_to() + #define dout_subsys ceph_subsys_rbd_pwl #undef dout_prefix #define dout_prefix *_dout << "librbd::cache::pwl::ssd::WriteLogEntry: " \ diff --git a/src/librbd/cache/pwl/ssd/Request.cc b/src/librbd/cache/pwl/ssd/Request.cc index 61e39b7c1d86..811de9115efa 100644 --- a/src/librbd/cache/pwl/ssd/Request.cc +++ b/src/librbd/cache/pwl/ssd/Request.cc @@ -3,6 +3,10 @@ #include "Request.h" +#include "include/intarith.h" // for round_up_to() + +#include + #define dout_subsys ceph_subsys_rbd_pwl #undef dout_prefix #define dout_prefix *_dout << "librbd::cache::pwl::ssd::Request: " << this << " " \ diff --git a/src/librbd/cache/pwl/ssd/Request.h b/src/librbd/cache/pwl/ssd/Request.h index 9bb3e85b9bd4..3815e3fb2fc1 100644 --- a/src/librbd/cache/pwl/ssd/Request.h +++ b/src/librbd/cache/pwl/ssd/Request.h @@ -6,6 +6,8 @@ #include "librbd/cache/pwl/Request.h" +#include + namespace librbd { class BlockGuardCell; diff --git a/src/librbd/cache/pwl/ssd/Types.h b/src/librbd/cache/pwl/ssd/Types.h index 4484fa2c1856..ffdc126021ef 100644 --- a/src/librbd/cache/pwl/ssd/Types.h +++ b/src/librbd/cache/pwl/ssd/Types.h @@ -6,6 +6,7 @@ #include "acconfig.h" +#include "common/Formatter.h" #include "librbd/io/Types.h" #include "librbd/cache/pwl/Types.h" diff --git a/src/librbd/cache/pwl/ssd/WriteLog.cc b/src/librbd/cache/pwl/ssd/WriteLog.cc index 3dca29aa6a78..a79987829440 100644 --- a/src/librbd/cache/pwl/ssd/WriteLog.cc +++ b/src/librbd/cache/pwl/ssd/WriteLog.cc @@ -5,6 +5,7 @@ #include "include/buffer.h" #include "include/Context.h" #include "include/ceph_assert.h" +#include "include/intarith.h" // for round_up_to() #include "common/Clock.h" // for ceph_clock_now() #include "common/deleter.h" #include "common/dout.h" diff --git a/src/librbd/io/ImageRequest.cc b/src/librbd/io/ImageRequest.cc index 5c10fe4048ad..6ed0fdb52490 100644 --- a/src/librbd/io/ImageRequest.cc +++ b/src/librbd/io/ImageRequest.cc @@ -16,6 +16,7 @@ #include "librbd/io/Utils.h" #include "librbd/journal/Types.h" #include "include/rados/librados.hpp" +#include "common/Clock.h" // for ceph_clock_now() #include "common/errno.h" #include "common/perf_counters.h" #include "osdc/Striper.h" diff --git a/src/librbd/object_map/SnapshotRemoveRequest.h b/src/librbd/object_map/SnapshotRemoveRequest.h index 1e9c75d81d16..010c22d647ff 100644 --- a/src/librbd/object_map/SnapshotRemoveRequest.h +++ b/src/librbd/object_map/SnapshotRemoveRequest.h @@ -6,6 +6,7 @@ #include "include/int_types.h" #include "include/buffer.h" +#include "include/rados.h" // for CEPH_NOSNAP #include "common/bit_vector.hpp" #include "librbd/AsyncRequest.h" diff --git a/src/librbd/object_map/SnapshotRollbackRequest.h b/src/librbd/object_map/SnapshotRollbackRequest.h index e26b1e0a37b5..7b2e543067f2 100644 --- a/src/librbd/object_map/SnapshotRollbackRequest.h +++ b/src/librbd/object_map/SnapshotRollbackRequest.h @@ -5,6 +5,7 @@ #define CEPH_LIBRBD_OBJECT_MAP_SNAPSHOT_ROLLBACK_REQUEST_H #include "include/int_types.h" +#include "include/rados.h" // for CEPH_NOSNAP #include "librbd/object_map/Request.h" class Context; diff --git a/src/librbd/operation/SnapshotCreateRequest.cc b/src/librbd/operation/SnapshotCreateRequest.cc index 111b4c17ab82..124a0fde07fe 100644 --- a/src/librbd/operation/SnapshotCreateRequest.cc +++ b/src/librbd/operation/SnapshotCreateRequest.cc @@ -3,6 +3,7 @@ #include "cls/rbd/cls_rbd_types.h" #include "librbd/operation/SnapshotCreateRequest.h" +#include "common/Clock.h" // for ceph_clock_now() #include "common/dout.h" #include "common/errno.h" #include "librbd/ExclusiveLock.h"