From: Pan Liu Date: Sun, 27 Aug 2017 15:14:12 +0000 (+0800) Subject: bluestore/NVMEDevice: remove useless IOSegment, and set X-Git-Tag: v13.0.1~1168^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F17284%2Fhead;p=ceph.git bluestore/NVMEDevice: remove useless IOSegment, and set dpdk_thread_adaptor as static. Signed-off-by: Pan Liu Signed-off-by: Ziye Yang --- 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; }