From cd10b8dc913a1438a4cce55c4ea7853561e98433 Mon Sep 17 00:00:00 2001 From: Pan Liu Date: Mon, 6 Mar 2017 12:35:22 +0800 Subject: [PATCH] os/filestore: use existing variable to assign newsize. Signed-off-by: Pan Liu --- src/os/filestore/FileJournal.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/os/filestore/FileJournal.cc b/src/os/filestore/FileJournal.cc index 0781e2c6955..5382a008ecb 100644 --- a/src/os/filestore/FileJournal.cc +++ b/src/os/filestore/FileJournal.cc @@ -189,9 +189,8 @@ int FileJournal::_open_file(int64_t oldsize, blksize_t blksize, } if (create && (oldsize < conf_journal_sz)) { - uint64_t newsize(cct->_conf->osd_journal_size); - newsize <<= 20; - dout(10) << "_open extending to " << newsize << " bytes" << dendl; + uint64_t newsize(conf_journal_sz); + dout(10) << __func__ << " _open extending to " << newsize << " bytes" << dendl; ret = ::ftruncate(fd, newsize); if (ret < 0) { int err = errno;