summaryrefslogtreecommitdiffstats
path: root/src/os/filestore/FileJournal.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/os/filestore/FileJournal.cc')
-rw-r--r--src/os/filestore/FileJournal.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/os/filestore/FileJournal.cc b/src/os/filestore/FileJournal.cc
index cfb1692cf35..98bed0dc298 100644
--- a/src/os/filestore/FileJournal.cc
+++ b/src/os/filestore/FileJournal.cc
@@ -672,7 +672,7 @@ int FileJournal::read_header(header_t *hdr) const
dout(10) << "read_header" << dendl;
bufferlist bl;
- buffer::ptr bp = buffer::create_page_aligned(block_size);
+ buffer::ptr bp = buffer::create_small_page_aligned(block_size);
char* bpdata = bp.c_str();
int r = ::pread(fd, bpdata, bp.length(), 0);
@@ -727,7 +727,7 @@ bufferptr FileJournal::prepare_header()
header.committed_up_to = journaled_seq;
}
encode(header, bl);
- bufferptr bp = buffer::create_page_aligned(get_top());
+ bufferptr bp = buffer::create_small_page_aligned(get_top());
// don't use bp.zero() here, because it also invalidates
// crc cache (which is not yet populated anyway)
char* data = bp.c_str();