From b9c1c0fe7cf495e7b36c776dea2985b106ac9dd2 Mon Sep 17 00:00:00 2001 From: xie xingguo Date: Tue, 10 Jan 2017 15:07:20 +0800 Subject: [PATCH] os/bluestore/KernelDevice: kill zeros This is not needed anymore and can save us 1MB memory. Signed-off-by: xie xingguo --- src/os/bluestore/KernelDevice.cc | 2 -- src/os/bluestore/KernelDevice.h | 1 - 2 files changed, 3 deletions(-) diff --git a/src/os/bluestore/KernelDevice.cc b/src/os/bluestore/KernelDevice.cc index dd238b7140c0b..24b18430941f2 100644 --- a/src/os/bluestore/KernelDevice.cc +++ b/src/os/bluestore/KernelDevice.cc @@ -46,8 +46,6 @@ KernelDevice::KernelDevice(CephContext* cct, aio_callback_t cb, void *cbpriv) aio_thread(this), injecting_crash(0) { - zeros = buffer::create_page_aligned(1048576); - zeros.zero(); } int KernelDevice::_lock() diff --git a/src/os/bluestore/KernelDevice.h b/src/os/bluestore/KernelDevice.h index a76abf9d9be98..f302923f97365 100644 --- a/src/os/bluestore/KernelDevice.h +++ b/src/os/bluestore/KernelDevice.h @@ -29,7 +29,6 @@ class KernelDevice : public BlockDevice { string path; FS *fs; bool aio, dio; - bufferptr zeros; Mutex debug_lock; interval_set debug_inflight; -- 2.39.5