summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorshawn <cxwshawn@gmail.com>2016-06-07 04:56:49 +0200
committershawn <cxwshawn@gmail.com>2016-06-21 04:58:18 +0200
commit01282eb5cdeda7bbbb77438c7d1953d023ea54b6 (patch)
tree2895d92d52a030951a706b857034fb912ee6b0e9
parentlibrbd: optimize object-map header file dependency (diff)
downloadceph-01282eb5cdeda7bbbb77438c7d1953d023ea54b6.tar.xz
ceph-01282eb5cdeda7bbbb77438c7d1953d023ea54b6.zip
librbd: optimize exclusive_lock header file dependency
Signed-off-by: Xiaowei Chen <chen.xiaowei@h3c.com>
-rw-r--r--src/librbd/exclusive_lock/AcquireRequest.h2
-rw-r--r--src/librbd/exclusive_lock/ReleaseRequest.cc3
-rw-r--r--src/librbd/exclusive_lock/ReleaseRequest.h1
3 files changed, 0 insertions, 6 deletions
diff --git a/src/librbd/exclusive_lock/AcquireRequest.h b/src/librbd/exclusive_lock/AcquireRequest.h
index 4990abbd811..7b31d92f824 100644
--- a/src/librbd/exclusive_lock/AcquireRequest.h
+++ b/src/librbd/exclusive_lock/AcquireRequest.h
@@ -6,10 +6,8 @@
#include "include/int_types.h"
#include "include/buffer.h"
-#include "include/rados/librados.hpp"
#include "librbd/ImageCtx.h"
#include "msg/msg_types.h"
-#include <map>
#include <string>
class Context;
diff --git a/src/librbd/exclusive_lock/ReleaseRequest.cc b/src/librbd/exclusive_lock/ReleaseRequest.cc
index 0583c266d03..36cc84be530 100644
--- a/src/librbd/exclusive_lock/ReleaseRequest.cc
+++ b/src/librbd/exclusive_lock/ReleaseRequest.cc
@@ -6,11 +6,8 @@
#include "cls/lock/cls_lock_types.h"
#include "common/dout.h"
#include "common/errno.h"
-#include "common/WorkQueue.h"
-#include "include/stringify.h"
#include "librbd/AioImageRequestWQ.h"
#include "librbd/ExclusiveLock.h"
-#include "librbd/ImageCtx.h"
#include "librbd/ImageWatcher.h"
#include "librbd/Journal.h"
#include "librbd/ObjectMap.h"
diff --git a/src/librbd/exclusive_lock/ReleaseRequest.h b/src/librbd/exclusive_lock/ReleaseRequest.h
index 8712bc963cc..a68530bbe23 100644
--- a/src/librbd/exclusive_lock/ReleaseRequest.h
+++ b/src/librbd/exclusive_lock/ReleaseRequest.h
@@ -4,7 +4,6 @@
#ifndef CEPH_LIBRBD_EXCLUSIVE_LOCK_RELEASE_REQUEST_H
#define CEPH_LIBRBD_EXCLUSIVE_LOCK_RELEASE_REQUEST_H
-#include "include/int_types.h"
#include "librbd/ImageCtx.h"
#include <string>