]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
os/bluestore/BlueFS: _flush_log -> _flush_and_sync_log
authorSage Weil <sage@redhat.com>
Wed, 22 Jun 2016 21:18:20 +0000 (17:18 -0400)
committerSage Weil <sage@redhat.com>
Thu, 30 Jun 2016 16:56:55 +0000 (12:56 -0400)
Be accurate.

No functional change.

Signed-off-by: Sage Weil <sage@redhat.com>
src/os/bluestore/BlueFS.cc
src/os/bluestore/BlueFS.h

index c6eb87fb75ef8ad7215d4acc52f3770abfa2c0a5..b7230e3674afc5059bbc53185453306b6534aff7 100644 (file)
@@ -145,7 +145,7 @@ void BlueFS::add_block_extent(unsigned id, uint64_t offset, uint64_t length)
 
   if (alloc.size()) {
     log_t.op_alloc_add(id, offset, length);
-    int r = _flush_log();
+    int r = _flush_and_sync_log();
     assert(r == 0);
     alloc[id]->init_add_free(offset, length);
   }
@@ -175,7 +175,7 @@ int BlueFS::reclaim_blocks(unsigned id, uint64_t want,
   block_all[id].erase(*offset, *length);
   block_total[id] -= *length;
   log_t.op_alloc_rm(id, *offset, *length);
-  r = _flush_log();
+  r = _flush_and_sync_log();
   assert(r == 0);
 
   if (logger)
@@ -271,7 +271,7 @@ int BlueFS::mkfs(uuid_d osd_uuid)
       log_t.op_alloc_add(bdev, q.get_start(), q.get_len());
     }
   }
-  _flush_log();
+  _flush_and_sync_log();
 
   // write supers
   super.log_fnode = log_file->fnode;
@@ -1021,7 +1021,7 @@ void BlueFS::_pad_bl(bufferlist& bl)
   }
 }
 
-int BlueFS::_flush_log()
+int BlueFS::_flush_and_sync_log()
 {
   log_t.seq = ++log_seq;
   log_t.uuid = super.uuid;
@@ -1279,7 +1279,7 @@ void BlueFS::_fsync(FileWriter *h)
   if (h->file->dirty) {
     dout(20) << __func__ << " file metadata is dirty, flushing log on "
             << h->file->fnode << dendl;
-    _flush_log();
+    _flush_and_sync_log();
     assert(!h->file->dirty);
   }
 }
@@ -1375,7 +1375,7 @@ void BlueFS::sync_metadata()
       p->commit_start();
     }
   }
-  _flush_log();
+  _flush_and_sync_log();
   for (auto p : alloc) {
     if (p) {
       p->commit_finish();
index b57496afe374aa9e19b3790e6b8dbcab77b6c73e..9d6129466d5b3b2a37c1e2d44df77af60c499b61 100644 (file)
@@ -235,7 +235,7 @@ private:
   void _flush_wait(FileWriter *h);
   void _fsync(FileWriter *h);
 
-  int _flush_log();
+  int _flush_and_sync_log();
   uint64_t _estimate_log_size();
   void _maybe_compact_log();
   void _compact_log();