]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: drop unused _pad_zeros args
authorSage Weil <sage@redhat.com>
Tue, 31 May 2016 18:33:46 +0000 (14:33 -0400)
committerSage Weil <sage@redhat.com>
Wed, 1 Jun 2016 15:40:49 +0000 (11:40 -0400)
Signed-off-by: Sage Weil <sage@redhat.com>
src/os/bluestore/BlueStore.cc
src/os/bluestore/BlueStore.h

index 90e4d17ae4665555563a039e0c5438fa3872c085..527338365edf3395528c9ad3524fe70f9e3ee292 100644 (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)
index eaa6678d2b97992d7299abefe294e8241594141c..29f6e50d28fdc4042eb488486e4d3eae05c9b2f9 100644 (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,