From 54383e8bd9bcd3f406b3d90418d64180918d612b Mon Sep 17 00:00:00 2001 From: Pan Liu Date: Sun, 27 Aug 2017 23:14:12 +0800 Subject: [PATCH] bluestore/NVMEDevice: remove useless IOSegment, and set dpdk_thread_adaptor as static. Signed-off-by: Pan Liu Signed-off-by: Ziye Yang --- src/os/bluestore/NVMEDevice.cc | 7 +------ src/os/bluestore/NVMEDevice.h | 1 - 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/os/bluestore/NVMEDevice.cc b/src/os/bluestore/NVMEDevice.cc index adb82c64eda6..268a2da7eced 100644 --- a/src/os/bluestore/NVMEDevice.cc +++ b/src/os/bluestore/NVMEDevice.cc @@ -72,17 +72,12 @@ enum { static void io_complete(void *t, const struct spdk_nvme_cpl *completion); -int dpdk_thread_adaptor(void *f) +static int dpdk_thread_adaptor(void *f) { (*static_cast*>(f))(); return 0; } -struct IOSegment { - uint32_t len; - void *addr; -}; - struct IORequest { uint16_t cur_seg_idx = 0; uint16_t nseg; diff --git a/src/os/bluestore/NVMEDevice.h b/src/os/bluestore/NVMEDevice.h index 365e6a4a6fda..74e045b0f5b1 100644 --- a/src/os/bluestore/NVMEDevice.h +++ b/src/os/bluestore/NVMEDevice.h @@ -48,7 +48,6 @@ class NVMEDevice : public BlockDevice { SharedDriverData *driver; string name; - static void init(); public: SharedDriverData *get_driver() { return driver; } -- 2.47.3