mirror of
https://github.com/ceph/ceph
synced 2025-03-08 09:19:03 +00:00
os/bluestore: drop unused _pad_zeros args
Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
parent
a9a5e63d99
commit
24578bc8f8
src/os/bluestore
@ -5228,8 +5228,6 @@ void BlueStore::_dump_bnode(BnodeRef b, int log_level)
|
||||
}
|
||||
|
||||
void BlueStore::_pad_zeros(
|
||||
TransContext *txc,
|
||||
OnodeRef o,
|
||||
bufferlist *bl, uint64_t *offset, uint64_t *length,
|
||||
uint64_t chunk_size)
|
||||
{
|
||||
@ -5546,7 +5544,7 @@ void BlueStore::_do_write_small(
|
||||
b->length = min_alloc_size;
|
||||
uint64_t b_off = offset % min_alloc_size;
|
||||
uint64_t b_len = length;
|
||||
_pad_zeros(txc, o, &bl, &b_off, &b_len, block_size);
|
||||
_pad_zeros(&bl, &b_off, &b_len, block_size);
|
||||
if (b_off)
|
||||
b->add_unused(0, b_off);
|
||||
if (b_off + b_len < b->length)
|
||||
|
@ -1285,8 +1285,7 @@ private:
|
||||
int _do_write_overlays(TransContext *txc, CollectionRef& c, OnodeRef o,
|
||||
uint64_t offset, uint64_t length);
|
||||
void _do_read_all_overlays(bluestore_wal_op_t& wo);
|
||||
void _pad_zeros(TransContext *txc,
|
||||
OnodeRef o, bufferlist *bl, uint64_t *offset, uint64_t *length,
|
||||
void _pad_zeros(bufferlist *bl, uint64_t *offset, uint64_t *length,
|
||||
uint64_t chunk_size);
|
||||
void _pad_zeros_head(OnodeRef o, bufferlist *bl,
|
||||
uint64_t *offset, uint64_t *length,
|
||||
|
Loading…
Reference in New Issue
Block a user