From: xie xingguo Date: Tue, 10 Jan 2017 07:07:20 +0000 (+0800) Subject: os/bluestore/KernelDevice: kill zeros X-Git-Tag: v12.0.0~240^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b9c1c0fe7cf495e7b36c776dea2985b106ac9dd2;p=ceph.git os/bluestore/KernelDevice: kill zeros This is not needed anymore and can save us 1MB memory. Signed-off-by: xie xingguo --- diff --git a/src/os/bluestore/KernelDevice.cc b/src/os/bluestore/KernelDevice.cc index dd238b7140c0..24b18430941f 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 a76abf9d9be9..f302923f9736 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;