os/bluestore: drop unused _pad_zeros args

Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
Sage Weil 2016-05-31 14:33:46 -04:00
parent a9a5e63d99
commit 24578bc8f8
2 changed files with 2 additions and 5 deletions
src/os/bluestore

View File

@ -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)

View File

@ -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,