From 83c8261e2398b0f695098a73f96bd76f9ee989f2 Mon Sep 17 00:00:00 2001 From: Haomai Wang Date: Sat, 9 Jan 2016 21:56:37 +0800 Subject: [PATCH] NVMEDevice: adjust indent Signed-off-by: Haomai Wang --- src/os/bluestore/NVMEDevice.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/os/bluestore/NVMEDevice.cc b/src/os/bluestore/NVMEDevice.cc index 1c96bdab9f28b..a9897bdec12cf 100644 --- a/src/os/bluestore/NVMEDevice.cc +++ b/src/os/bluestore/NVMEDevice.cc @@ -253,7 +253,7 @@ int SharedDriverData::try_get(const string &sn_tag, nvme_controller **c, string return r; } - request_mempool = rte_mempool_create("nvme_request", 512, + request_mempool = rte_mempool_create("nvme_request", 512, nvme_request_size(), 128, 0, NULL, NULL, NULL, NULL, SOCKET_ID_ANY, 0); @@ -262,7 +262,7 @@ int SharedDriverData::try_get(const string &sn_tag, nvme_controller **c, string return -ENOMEM; } - task_pool = rte_mempool_create( + task_pool = rte_mempool_create( "task_pool", 512, sizeof(Task), 64, 0, NULL, NULL, NULL, NULL, SOCKET_ID_ANY, 0); @@ -273,8 +273,8 @@ int SharedDriverData::try_get(const string &sn_tag, nvme_controller **c, string pci_system_init(); nvme_retry_count = g_conf->bdev_nvme_retry_count; - if (nvme_retry_count < 0) - nvme_retry_count = NVME_DEFAULT_RETRY_COUNT; + if (nvme_retry_count < 0) + nvme_retry_count = NVME_DEFAULT_RETRY_COUNT; init = true; } @@ -561,9 +561,9 @@ int NVMEDevice::aio_write( Task *t; int r = rte_mempool_get(task_pool, (void **)&t); if (r < 0) { - derr << __func__ << " task_pool rte_mempool_get failed" << dendl; + derr << __func__ << " task_pool rte_mempool_get failed" << dendl; return r; - } + } t->start = ceph_clock_now(g_ceph_context); t->buf = rte_malloc(NULL, len, block_size); -- 2.39.5