]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore/KernelDevice: kill zeros
authorxie xingguo <xie.xingguo@zte.com.cn>
Tue, 10 Jan 2017 07:07:20 +0000 (15:07 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Tue, 10 Jan 2017 07:39:37 +0000 (15:39 +0800)
This is not needed anymore and can save us 1MB memory.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/os/bluestore/KernelDevice.cc
src/os/bluestore/KernelDevice.h

index dd238b7140c0b25e4a30b962372d819304480531..24b18430941f2df51c9ecc406d226cc0489df765 100644 (file)
@@ -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()
index a76abf9d9be982abc0ee6b1c570e0b32549bce1b..f302923f97365720bdb5a9114b57df64c77de596 100644 (file)
@@ -29,7 +29,6 @@ class KernelDevice : public BlockDevice {
   string path;
   FS *fs;
   bool aio, dio;
-  bufferptr zeros;
 
   Mutex debug_lock;
   interval_set<uint64_t> debug_inflight;