Skip to content

Commit fd25ad6

Browse files
committed
librbd: add missing includes
Signed-off-by: Max Kellermann <[email protected]>
1 parent f67a7ec commit fd25ad6

File tree

16 files changed

+22
-0
lines changed

16 files changed

+22
-0
lines changed

src/librbd/ImageCtx.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#include "include/neorados/RADOS.hpp"
88

99
#include "common/ceph_context.h"
10+
#include "common/Clock.h" // for ceph_clock_now()
1011
#include "common/dout.h"
1112
#include "common/errno.h"
1213
#include "common/perf_counters.h"

src/librbd/ImageWatcher.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414
#include "librbd/image_watcher/NotifyLockOwner.h"
1515
#include "librbd/io/AioCompletion.h"
1616
#include "include/encoding.h"
17+
#include "common/Clock.h" // for ceph_clock_now()
1718
#include "common/errno.h"
19+
#include "common/perf_counters.h"
1820
#include <boost/bind/bind.hpp>
1921

2022
#include <shared_mutex> // for std::shared_lock

src/librbd/Journal.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
#include "librbd/Journal.h"
55
#include "include/rados/librados.hpp"
66
#include "common/AsyncOpTracker.h"
7+
#include "common/Clock.h" // for ceph_clock_now()
78
#include "common/errno.h"
89
#include "common/Timer.h"
910
#include "common/WorkQueue.h"

src/librbd/api/DiffIterate.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include "librbd/object_map/DiffRequest.h"
1515
#include "include/rados/librados.hpp"
1616
#include "include/interval_set.h"
17+
#include "common/Clock.h" // for ceph_clock_now()
1718
#include "common/errno.h"
1819
#include "common/Cond.h"
1920
#include "common/Throttle.h"

src/librbd/api/PoolMetadata.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
#include "librbd/api/PoolMetadata.h"
55
#include "cls/rbd/cls_rbd_client.h"
6+
#include "common/Clock.h" // for ceph_clock_now()
67
#include "common/dout.h"
78
#include "common/errno.h"
89
#include "common/Cond.h"

src/librbd/api/Trash.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
#include "librbd/api/Trash.h"
55
#include "include/rados/librados.hpp"
6+
#include "common/Clock.h" // for ceph_clock_now()
67
#include "common/dout.h"
78
#include "common/errno.h"
89
#include "common/Cond.h"

src/librbd/cache/ObjectCacherObjectDispatch.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
#include "librbd/cache/ObjectCacherObjectDispatch.h"
55
#include "include/neorados/RADOS.hpp"
66
#include "common/errno.h"
7+
#include "common/perf_counters.h"
78
#include "librbd/ImageCtx.h"
89
#include "librbd/Journal.h"
910
#include "librbd/Utils.h"

src/librbd/cache/pwl/ssd/LogEntry.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
#include "librbd/cache/ImageWriteback.h"
55
#include "librbd/cache/pwl/ssd/LogEntry.h"
66

7+
#include "include/intarith.h" // for round_up_to()
8+
79
#define dout_subsys ceph_subsys_rbd_pwl
810
#undef dout_prefix
911
#define dout_prefix *_dout << "librbd::cache::pwl::ssd::WriteLogEntry: " \

src/librbd/cache/pwl/ssd/Request.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33

44
#include "Request.h"
55

6+
#include "include/intarith.h" // for round_up_to()
7+
8+
#include <ostream>
9+
610
#define dout_subsys ceph_subsys_rbd_pwl
711
#undef dout_prefix
812
#define dout_prefix *_dout << "librbd::cache::pwl::ssd::Request: " << this << " " \

src/librbd/cache/pwl/ssd/Request.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
#include "librbd/cache/pwl/Request.h"
88

9+
#include <iosfwd>
10+
911
namespace librbd {
1012
class BlockGuardCell;
1113

0 commit comments

Comments
 (0)