]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd: optimize exclusive_lock header file dependency
authorshawn <cxwshawn@gmail.com>
Tue, 7 Jun 2016 02:56:49 +0000 (22:56 -0400)
committerMykola Golub <mgolub@mirantis.com>
Fri, 19 Aug 2016 19:59:06 +0000 (22:59 +0300)
Signed-off-by: Xiaowei Chen <chen.xiaowei@h3c.com>
(cherry picked from commit 01282eb5cdeda7bbbb77438c7d1953d023ea54b6)

src/librbd/exclusive_lock/AcquireRequest.h
src/librbd/exclusive_lock/ReleaseRequest.cc
src/librbd/exclusive_lock/ReleaseRequest.h

index 4990abbd811c04d5adeb94fc2a9bc68fe61e4493..7b31d92f824fdcc48f9d2ba6374f1fb452e7c781 100644 (file)
@@ -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;
index e122c8ad2c5831706d55f52925746002125c50e6..bed95171882be9f900dc29a06c37b4667bb2fb1e 100644 (file)
@@ -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"
index 8712bc963cc8c8b234ae6d5a47968fcc8932dd82..a68530bbe231d0477e38fc01535cfe07cdd0f2c1 100644 (file)
@@ -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>