]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
librbd: add missing includes
authorMax Kellermann <max.kellermann@ionos.com>
Fri, 25 Apr 2025 16:50:21 +0000 (18:50 +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>
16 files changed:
src/librbd/ImageCtx.cc
src/librbd/ImageWatcher.cc
src/librbd/Journal.cc
src/librbd/api/DiffIterate.cc
src/librbd/api/PoolMetadata.cc
src/librbd/api/Trash.cc
src/librbd/cache/ObjectCacherObjectDispatch.cc
src/librbd/cache/pwl/ssd/LogEntry.cc
src/librbd/cache/pwl/ssd/Request.cc
src/librbd/cache/pwl/ssd/Request.h
src/librbd/cache/pwl/ssd/Types.h
src/librbd/cache/pwl/ssd/WriteLog.cc
src/librbd/io/ImageRequest.cc
src/librbd/object_map/SnapshotRemoveRequest.h
src/librbd/object_map/SnapshotRollbackRequest.h
src/librbd/operation/SnapshotCreateRequest.cc

index f7d6120b1d19b8b2e187e561c83555461473d727..0c32a75c1fda918ccd67563d673cd53c1b5d45b5 100644 (file)
@@ -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"
index 69e8403af83837a4e7de8fa7fa7355a1b68a4fc2..32bbb0d69acfa247ef680d9929e8238dc8f645c4 100644 (file)
@@ -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 <boost/bind/bind.hpp>
 
 #include <shared_mutex> // for std::shared_lock
index ab65007d9ad8bf12ba136be4d4fa7da5aedafe2f..2200ae8e4eb05f2aa786521a582c63c24502f17c 100644 (file)
@@ -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"
index 1fbdeea483ea57a549c4fcc5a973f137a4ad2d36..9c82efa010de0c4d837b30872371a32238b230a5 100644 (file)
@@ -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"
index 33e3fb6486f921e595b5b47079116edadf75a758..8cf5eb945213bdb2e569c765b333d2357d410f3d 100644 (file)
@@ -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"
index bc7523285af15f8a17645bb418774146e63dcef8..77cb0e94ea6925c9c0a3c21f0e9428fc4c80b869 100644 (file)
@@ -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"
index cd081d58d0d65f825c12cbc22cd5a6b47b215a25..6ee8b6073c8aff419b368ee8ee0d1151292cd4ec 100644 (file)
@@ -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"
index 0e6edd87b35c6877fa58525d87f836967f30acb6..9e1b9101a7f544c6ba3117e9336de1bbfd14a17f 100644 (file)
@@ -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: " \
index 61e39b7c1d86f59dd92c1721f4560b3df1f54eb8..811de9115efa51e7bf80fbe29695b959fcf797bc 100644 (file)
@@ -3,6 +3,10 @@
 
 #include "Request.h"
 
+#include "include/intarith.h" // for round_up_to()
+
+#include <ostream>
+
 #define dout_subsys ceph_subsys_rbd_pwl
 #undef dout_prefix
 #define dout_prefix *_dout << "librbd::cache::pwl::ssd::Request: " << this << " " \
index 9bb3e85b9bd4039a1d52122bf4bffaa726eba85e..3815e3fb2fc12e411bfc71b2eceda5748ea7c286 100644 (file)
@@ -6,6 +6,8 @@
 
 #include "librbd/cache/pwl/Request.h"
 
+#include <iosfwd>
+
 namespace librbd {
 class BlockGuardCell;
 
index 4484fa2c185640e9577c1d0b283d8e0c60ba125e..ffdc126021ef16d8f0713a2b7cb090de3d9a6826 100644 (file)
@@ -6,6 +6,7 @@
   
 #include "acconfig.h"
     
+#include "common/Formatter.h"
 #include "librbd/io/Types.h"
 #include "librbd/cache/pwl/Types.h"
 
index 3dca29aa6a78133b5cb838ccc8e39714dae0b13d..a79987829440769f2b21fd445083bfda13ec6174 100644 (file)
@@ -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"
index 5c10fe4048adfad26752e51cb5237ef105e2fff7..6ed0fdb52490a1bdb0b0382f000d17579ba0468c 100644 (file)
@@ -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"
index 1e9c75d81d16b79ee42aabdcd9058904053f4489..010c22d647fffae9300617781da4b08f784941eb 100644 (file)
@@ -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"
 
index e26b1e0a37b50362b88afaef87a5b86a7bd8db91..7b2e543067f2c52114d118d4ae1a69e10c3e61d2 100644 (file)
@@ -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;
index 111b4c17ab824ca23d3670dfbb5b15c05932505e..124a0fde07fe966577e75d6afe292e7383298295 100644 (file)
@@ -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"