]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd: fix improper indentation of 'ceph_assert' statements
authorJason Dillaman <dillaman@redhat.com>
Thu, 6 Sep 2018 14:08:41 +0000 (10:08 -0400)
committerJason Dillaman <dillaman@redhat.com>
Wed, 19 Sep 2018 18:52:48 +0000 (14:52 -0400)
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
13 files changed:
src/librbd/ImageWatcher.cc
src/librbd/Journal.cc
src/librbd/ManagedLock.cc
src/librbd/ObjectMap.cc
src/librbd/Operations.cc
src/librbd/image/RefreshRequest.cc
src/librbd/internal.cc
src/librbd/journal/Replay.cc
src/librbd/operation/ObjectMapIterate.cc
src/librbd/operation/RebuildObjectMapRequest.cc
src/librbd/operation/ResizeRequest.cc
src/librbd/operation/SnapshotCreateRequest.cc
src/librbd/operation/TrimRequest.cc

index 8575cd05af9080f35f6c22daa53f9cf641d6990b..cfa08173d656336aa7c03184ea13d9280903a7d8 100644 (file)
@@ -167,7 +167,7 @@ void ImageWatcher<I>::notify_flatten(uint64_t request_id,
                                      Context *on_finish) {
   ceph_assert(m_image_ctx.owner_lock.is_locked());
   ceph_assert(m_image_ctx.exclusive_lock &&
-         !m_image_ctx.exclusive_lock->is_lock_owner());
+              !m_image_ctx.exclusive_lock->is_lock_owner());
 
   AsyncRequestId async_request_id(get_client_id(), request_id);
 
@@ -182,7 +182,7 @@ void ImageWatcher<I>::notify_resize(uint64_t request_id, uint64_t size,
                                     Context *on_finish) {
   ceph_assert(m_image_ctx.owner_lock.is_locked());
   ceph_assert(m_image_ctx.exclusive_lock &&
-         !m_image_ctx.exclusive_lock->is_lock_owner());
+              !m_image_ctx.exclusive_lock->is_lock_owner());
 
   AsyncRequestId async_request_id(get_client_id(), request_id);
 
@@ -197,7 +197,7 @@ void ImageWatcher<I>::notify_snap_create(const cls::rbd::SnapshotNamespace &snap
                                          Context *on_finish) {
   ceph_assert(m_image_ctx.owner_lock.is_locked());
   ceph_assert(m_image_ctx.exclusive_lock &&
-         !m_image_ctx.exclusive_lock->is_lock_owner());
+              !m_image_ctx.exclusive_lock->is_lock_owner());
 
   notify_lock_owner(SnapCreatePayload(snap_namespace, snap_name), on_finish);
 }
@@ -208,7 +208,7 @@ void ImageWatcher<I>::notify_snap_rename(const snapid_t &src_snap_id,
                                         Context *on_finish) {
   ceph_assert(m_image_ctx.owner_lock.is_locked());
   ceph_assert(m_image_ctx.exclusive_lock &&
-         !m_image_ctx.exclusive_lock->is_lock_owner());
+              !m_image_ctx.exclusive_lock->is_lock_owner());
 
   notify_lock_owner(SnapRenamePayload(src_snap_id, dst_snap_name), on_finish);
 }
@@ -219,7 +219,7 @@ void ImageWatcher<I>::notify_snap_remove(const cls::rbd::SnapshotNamespace &snap
                                          Context *on_finish) {
   ceph_assert(m_image_ctx.owner_lock.is_locked());
   ceph_assert(m_image_ctx.exclusive_lock &&
-         !m_image_ctx.exclusive_lock->is_lock_owner());
+              !m_image_ctx.exclusive_lock->is_lock_owner());
 
   notify_lock_owner(SnapRemovePayload(snap_namespace, snap_name), on_finish);
 }
@@ -230,7 +230,7 @@ void ImageWatcher<I>::notify_snap_protect(const cls::rbd::SnapshotNamespace &sna
                                           Context *on_finish) {
   ceph_assert(m_image_ctx.owner_lock.is_locked());
   ceph_assert(m_image_ctx.exclusive_lock &&
-         !m_image_ctx.exclusive_lock->is_lock_owner());
+              !m_image_ctx.exclusive_lock->is_lock_owner());
 
   notify_lock_owner(SnapProtectPayload(snap_namespace, snap_name), on_finish);
 }
@@ -241,7 +241,7 @@ void ImageWatcher<I>::notify_snap_unprotect(const cls::rbd::SnapshotNamespace &s
                                             Context *on_finish) {
   ceph_assert(m_image_ctx.owner_lock.is_locked());
   ceph_assert(m_image_ctx.exclusive_lock &&
-         !m_image_ctx.exclusive_lock->is_lock_owner());
+              !m_image_ctx.exclusive_lock->is_lock_owner());
 
   notify_lock_owner(SnapUnprotectPayload(snap_namespace, snap_name), on_finish);
 }
@@ -252,7 +252,7 @@ void ImageWatcher<I>::notify_rebuild_object_map(uint64_t request_id,
                                                 Context *on_finish) {
   ceph_assert(m_image_ctx.owner_lock.is_locked());
   ceph_assert(m_image_ctx.exclusive_lock &&
-         !m_image_ctx.exclusive_lock->is_lock_owner());
+              !m_image_ctx.exclusive_lock->is_lock_owner());
 
   AsyncRequestId async_request_id(get_client_id(), request_id);
 
@@ -266,7 +266,7 @@ void ImageWatcher<I>::notify_rename(const std::string &image_name,
                                     Context *on_finish) {
   ceph_assert(m_image_ctx.owner_lock.is_locked());
   ceph_assert(m_image_ctx.exclusive_lock &&
-         !m_image_ctx.exclusive_lock->is_lock_owner());
+              !m_image_ctx.exclusive_lock->is_lock_owner());
 
   notify_lock_owner(RenamePayload(image_name), on_finish);
 }
@@ -276,7 +276,7 @@ void ImageWatcher<I>::notify_update_features(uint64_t features, bool enabled,
                                              Context *on_finish) {
   ceph_assert(m_image_ctx.owner_lock.is_locked());
   ceph_assert(m_image_ctx.exclusive_lock &&
-         !m_image_ctx.exclusive_lock->is_lock_owner());
+              !m_image_ctx.exclusive_lock->is_lock_owner());
 
   notify_lock_owner(UpdateFeaturesPayload(features, enabled), on_finish);
 }
@@ -287,7 +287,7 @@ void ImageWatcher<I>::notify_migrate(uint64_t request_id,
                                      Context *on_finish) {
   ceph_assert(m_image_ctx.owner_lock.is_locked());
   ceph_assert(m_image_ctx.exclusive_lock &&
-         !m_image_ctx.exclusive_lock->is_lock_owner());
+              !m_image_ctx.exclusive_lock->is_lock_owner());
 
   AsyncRequestId async_request_id(get_client_id(), request_id);
 
@@ -378,7 +378,7 @@ void ImageWatcher<I>::schedule_request_lock(bool use_timer, int timer_delay) {
     return;
   }
   ceph_assert(m_image_ctx.exclusive_lock &&
-         !m_image_ctx.exclusive_lock->is_lock_owner());
+              !m_image_ctx.exclusive_lock->is_lock_owner());
 
   RWLock::RLocker watch_locker(this->m_watch_lock);
   if (this->is_registered(this->m_watch_lock)) {
index 6ff84335093d11e6c149bb737bd1e2b3bca5cd7f..a74cfb4c510cecc209425073bd49edf04cd93668 100644 (file)
@@ -1116,7 +1116,7 @@ void Journal<I>::recreate_journaler(int r) {
 
   ceph_assert(m_lock.is_locked());
   ceph_assert(m_state == STATE_FLUSHING_RESTART ||
-         m_state == STATE_FLUSHING_REPLAY);
+              m_state == STATE_FLUSHING_REPLAY);
 
   delete m_journal_replay;
   m_journal_replay = NULL;
@@ -1267,7 +1267,7 @@ void Journal<I>::handle_replay_complete(int r) {
       {
         Mutex::Locker locker(m_lock);
         ceph_assert(m_state == STATE_FLUSHING_RESTART ||
-               m_state == STATE_FLUSHING_REPLAY);
+                    m_state == STATE_FLUSHING_REPLAY);
         state = m_state;
       }
 
@@ -1310,8 +1310,8 @@ void Journal<I>::handle_replay_process_safe(ReplayEntry replay_entry, int r) {
 
   m_lock.Lock();
   ceph_assert(m_state == STATE_REPLAYING ||
-         m_state == STATE_FLUSHING_RESTART ||
-         m_state == STATE_FLUSHING_REPLAY);
+              m_state == STATE_FLUSHING_RESTART ||
+              m_state == STATE_FLUSHING_REPLAY);
 
   ldout(cct, 20) << this << " " << __func__ << ": r=" << r << dendl;
   if (r < 0) {
@@ -1382,7 +1382,8 @@ void Journal<I>::handle_flushing_replay() {
   CephContext *cct = m_image_ctx.cct;
   ldout(cct, 20) << this << " " << __func__ << dendl;
 
-  ceph_assert(m_state == STATE_FLUSHING_REPLAY || m_state == STATE_FLUSHING_RESTART);
+  ceph_assert(m_state == STATE_FLUSHING_REPLAY ||
+              m_state == STATE_FLUSHING_RESTART);
   if (m_close_pending) {
     destroy_journaler(0);
     return;
index 8f62ff15fe3491abc9bb97abc5449d93eb1ddc1e..433c5964471cd247e36ac6719087bb8a53ec014b 100644 (file)
@@ -81,7 +81,7 @@ template <typename I>
 ManagedLock<I>::~ManagedLock() {
   Mutex::Locker locker(m_lock);
   ceph_assert(m_state == STATE_SHUTDOWN || m_state == STATE_UNLOCKED ||
-         m_state == STATE_UNINITIALIZED);
+              m_state == STATE_UNINITIALIZED);
   if (m_state == STATE_UNINITIALIZED) {
     // never initialized -- ensure any in-flight ops are complete
     // since we wouldn't expect shut_down to be invoked
@@ -135,7 +135,7 @@ void ManagedLock<I>::shut_down(Context *on_shut_down) {
     ldout(m_cct, 10) << "woke up waiting acquire" << dendl;
     Action active_action = get_active_action();
     ceph_assert(active_action == ACTION_TRY_LOCK ||
-           active_action == ACTION_ACQUIRE_LOCK);
+                active_action == ACTION_ACQUIRE_LOCK);
     complete_active_action(STATE_UNLOCKED, -ESHUTDOWN);
   }
 
@@ -209,7 +209,7 @@ void ManagedLock<I>::reacquire_lock(Context *on_reacquired) {
       ldout(m_cct, 10) << "woke up waiting acquire" << dendl;
       Action active_action = get_active_action();
       ceph_assert(active_action == ACTION_TRY_LOCK ||
-             active_action == ACTION_ACQUIRE_LOCK);
+                  active_action == ACTION_ACQUIRE_LOCK);
       execute_next_action();
     } else if (!is_state_shutdown() &&
                (m_state == STATE_LOCKED ||
index 041f287410efb84d1e59db5891daa6577792dc66..870049be71da1f0360b1ca7111d0f48e55b85411 100644 (file)
@@ -174,7 +174,7 @@ bool ObjectMap<I>::set_object_map(ceph::BitVector<2> &target_object_map) {
   ceph_assert(m_image_ctx.owner_lock.is_locked());
   ceph_assert(m_image_ctx.snap_lock.is_locked());
   ceph_assert(m_image_ctx.test_features(RBD_FEATURE_OBJECT_MAP,
-                                   m_image_ctx.snap_lock));
+                                        m_image_ctx.snap_lock));
   RWLock::RLocker object_map_locker(m_image_ctx.object_map_lock);
   m_object_map = target_object_map;
   return true;
@@ -219,7 +219,7 @@ void ObjectMap<I>::aio_save(Context *on_finish) {
   ceph_assert(m_image_ctx.owner_lock.is_locked());
   ceph_assert(m_image_ctx.snap_lock.is_locked());
   ceph_assert(m_image_ctx.test_features(RBD_FEATURE_OBJECT_MAP,
-                                   m_image_ctx.snap_lock));
+                                        m_image_ctx.snap_lock));
   RWLock::RLocker object_map_locker(m_image_ctx.object_map_lock);
 
   librados::ObjectWriteOperation op;
@@ -242,10 +242,10 @@ void ObjectMap<I>::aio_resize(uint64_t new_size, uint8_t default_object_state,
   ceph_assert(m_image_ctx.owner_lock.is_locked());
   ceph_assert(m_image_ctx.snap_lock.is_locked());
   ceph_assert(m_image_ctx.test_features(RBD_FEATURE_OBJECT_MAP,
-                                   m_image_ctx.snap_lock));
+                                        m_image_ctx.snap_lock));
   ceph_assert(m_image_ctx.image_watcher != NULL);
   ceph_assert(m_image_ctx.exclusive_lock == nullptr ||
-         m_image_ctx.exclusive_lock->is_lock_owner());
+              m_image_ctx.exclusive_lock->is_lock_owner());
 
   object_map::ResizeRequest *req = new object_map::ResizeRequest(
     m_image_ctx, &m_object_map, m_snap_id, new_size, default_object_state,
@@ -319,8 +319,9 @@ void ObjectMap<I>::aio_update(uint64_t snap_id, uint64_t start_object_no,
   ceph_assert((m_image_ctx.features & RBD_FEATURE_OBJECT_MAP) != 0);
   ceph_assert(m_image_ctx.image_watcher != nullptr);
   ceph_assert(m_image_ctx.exclusive_lock == nullptr ||
-         m_image_ctx.exclusive_lock->is_lock_owner());
-  ceph_assert(snap_id != CEPH_NOSNAP || m_image_ctx.object_map_lock.is_wlocked());
+              m_image_ctx.exclusive_lock->is_lock_owner());
+  ceph_assert(snap_id != CEPH_NOSNAP ||
+              m_image_ctx.object_map_lock.is_wlocked());
   ceph_assert(start_object_no < end_object_no);
 
   CephContext *cct = m_image_ctx.cct;
index e670b8523fb4c3fb7696ecdc0b2f6050149c480d..4940bffd9a0b24bef50065827de43c175d212dd0 100644 (file)
@@ -372,7 +372,7 @@ void Operations<I>::execute_flatten(ProgressContext &prog_ctx,
                                     Context *on_finish) {
   ceph_assert(m_image_ctx.owner_lock.is_locked());
   ceph_assert(m_image_ctx.exclusive_lock == nullptr ||
-         m_image_ctx.exclusive_lock->is_lock_owner());
+              m_image_ctx.exclusive_lock->is_lock_owner());
 
   CephContext *cct = m_image_ctx.cct;
   ldout(cct, 20) << "flatten" << dendl;
@@ -450,7 +450,7 @@ void Operations<I>::execute_rebuild_object_map(ProgressContext &prog_ctx,
                                                Context *on_finish) {
   ceph_assert(m_image_ctx.owner_lock.is_locked());
   ceph_assert(m_image_ctx.exclusive_lock == nullptr ||
-         m_image_ctx.exclusive_lock->is_lock_owner());
+              m_image_ctx.exclusive_lock->is_lock_owner());
 
   CephContext *cct = m_image_ctx.cct;
   ldout(cct, 5) << this << " " << __func__ << dendl;
@@ -497,7 +497,7 @@ void Operations<I>::object_map_iterate(ProgressContext &prog_ctx,
                                       Context *on_finish) {
   ceph_assert(m_image_ctx.owner_lock.is_locked());
   ceph_assert(m_image_ctx.exclusive_lock == nullptr ||
-         m_image_ctx.exclusive_lock->is_lock_owner());
+              m_image_ctx.exclusive_lock->is_lock_owner());
 
   if (!m_image_ctx.test_features(RBD_FEATURE_OBJECT_MAP)) {
     on_finish->complete(-EINVAL);
@@ -566,7 +566,7 @@ void Operations<I>::execute_rename(const std::string &dest_name,
   ceph_assert(m_image_ctx.owner_lock.is_locked());
   if (m_image_ctx.test_features(RBD_FEATURE_JOURNALING)) {
     ceph_assert(m_image_ctx.exclusive_lock == nullptr ||
-           m_image_ctx.exclusive_lock->is_lock_owner());
+                m_image_ctx.exclusive_lock->is_lock_owner());
   }
 
   if (m_image_ctx.operations_disabled) {
@@ -649,7 +649,7 @@ void Operations<I>::execute_resize(uint64_t size, bool allow_shrink, ProgressCon
                                    uint64_t journal_op_tid) {
   ceph_assert(m_image_ctx.owner_lock.is_locked());
   ceph_assert(m_image_ctx.exclusive_lock == nullptr ||
-         m_image_ctx.exclusive_lock->is_lock_owner());
+              m_image_ctx.exclusive_lock->is_lock_owner());
 
   CephContext *cct = m_image_ctx.cct;
   m_image_ctx.snap_lock.get_read();
@@ -740,7 +740,7 @@ void Operations<I>::execute_snap_create(const cls::rbd::SnapshotNamespace &snap_
                                         bool skip_object_map) {
   ceph_assert(m_image_ctx.owner_lock.is_locked());
   ceph_assert(m_image_ctx.exclusive_lock == nullptr ||
-         m_image_ctx.exclusive_lock->is_lock_owner());
+              m_image_ctx.exclusive_lock->is_lock_owner());
 
   CephContext *cct = m_image_ctx.cct;
   ldout(cct, 5) << this << " " << __func__ << ": snap_name=" << snap_name
@@ -922,7 +922,7 @@ void Operations<I>::execute_snap_remove(const cls::rbd::SnapshotNamespace& snap_
   {
     if ((m_image_ctx.features & RBD_FEATURE_FAST_DIFF) != 0) {
       ceph_assert(m_image_ctx.exclusive_lock == nullptr ||
-             m_image_ctx.exclusive_lock->is_lock_owner());
+                  m_image_ctx.exclusive_lock->is_lock_owner());
     }
   }
 
@@ -1026,7 +1026,7 @@ void Operations<I>::execute_snap_rename(const uint64_t src_snap_id,
   ceph_assert(m_image_ctx.owner_lock.is_locked());
   if ((m_image_ctx.features & RBD_FEATURE_JOURNALING) != 0) {
     ceph_assert(m_image_ctx.exclusive_lock == nullptr ||
-           m_image_ctx.exclusive_lock->is_lock_owner());
+                m_image_ctx.exclusive_lock->is_lock_owner());
   }
 
   if (m_image_ctx.operations_disabled) {
@@ -1123,7 +1123,7 @@ void Operations<I>::execute_snap_protect(const cls::rbd::SnapshotNamespace& snap
   ceph_assert(m_image_ctx.owner_lock.is_locked());
   if (m_image_ctx.test_features(RBD_FEATURE_JOURNALING)) {
     ceph_assert(m_image_ctx.exclusive_lock == nullptr ||
-           m_image_ctx.exclusive_lock->is_lock_owner());
+                m_image_ctx.exclusive_lock->is_lock_owner());
   }
 
   if (m_image_ctx.operations_disabled) {
@@ -1218,7 +1218,7 @@ void Operations<I>::execute_snap_unprotect(const cls::rbd::SnapshotNamespace& sn
   ceph_assert(m_image_ctx.owner_lock.is_locked());
   if (m_image_ctx.test_features(RBD_FEATURE_JOURNALING)) {
     ceph_assert(m_image_ctx.exclusive_lock == nullptr ||
-           m_image_ctx.exclusive_lock->is_lock_owner());
+                m_image_ctx.exclusive_lock->is_lock_owner());
   }
 
   if (m_image_ctx.operations_disabled) {
@@ -1399,7 +1399,7 @@ void Operations<I>::execute_update_features(uint64_t features, bool enabled,
                                             uint64_t journal_op_tid) {
   ceph_assert(m_image_ctx.owner_lock.is_locked());
   ceph_assert(m_image_ctx.exclusive_lock == nullptr ||
-         m_image_ctx.exclusive_lock->is_lock_owner());
+              m_image_ctx.exclusive_lock->is_lock_owner());
 
   CephContext *cct = m_image_ctx.cct;
   ldout(cct, 5) << this << " " << __func__ << ": features=" << features
@@ -1598,7 +1598,7 @@ void Operations<I>::execute_migrate(ProgressContext &prog_ctx,
                                     Context *on_finish) {
   ceph_assert(m_image_ctx.owner_lock.is_locked());
   ceph_assert(m_image_ctx.exclusive_lock == nullptr ||
-         m_image_ctx.exclusive_lock->is_lock_owner());
+              m_image_ctx.exclusive_lock->is_lock_owner());
 
   CephContext *cct = m_image_ctx.cct;
   ldout(cct, 20) << "migrate" << dendl;
@@ -1637,7 +1637,7 @@ void Operations<I>::execute_migrate(ProgressContext &prog_ctx,
 template <typename I>
 int Operations<I>::prepare_image_update(bool request_lock) {
   ceph_assert(m_image_ctx.owner_lock.is_locked() &&
-         !m_image_ctx.owner_lock.is_wlocked());
+              !m_image_ctx.owner_lock.is_wlocked());
   if (m_image_ctx.image_watcher == nullptr) {
     return -EROFS;
   }
index 4cdb74f68e2ba924f070b1a5703f88136bd492c0..3c4212f005fb00c13ac6ec7fd93a656679fa5c95 100644 (file)
@@ -1387,9 +1387,10 @@ bool RefreshRequest<I>::get_migration_info(ParentImageInfo *parent_md,
   if (m_migration_spec.header_type != cls::rbd::MIGRATION_HEADER_TYPE_DST ||
       (m_migration_spec.state != cls::rbd::MIGRATION_STATE_PREPARED &&
        m_migration_spec.state != cls::rbd::MIGRATION_STATE_EXECUTING)) {
-    ceph_assert(m_migration_spec.header_type == cls::rbd::MIGRATION_HEADER_TYPE_SRC ||
-           m_migration_spec.pool_id == -1 ||
-           m_migration_spec.state == cls::rbd::MIGRATION_STATE_EXECUTED);
+    ceph_assert(m_migration_spec.header_type ==
+                    cls::rbd::MIGRATION_HEADER_TYPE_SRC ||
+                m_migration_spec.pool_id == -1 ||
+                m_migration_spec.state == cls::rbd::MIGRATION_STATE_EXECUTED);
 
     return false;
   }
index f7eec3c4d69946811b1a3da3c77b21345b3ba450..88271739cc2e5d1e67551befae6ce92e541f6fea 100644 (file)
@@ -213,7 +213,7 @@ bool compare_by_name(const child_info_t& c1, const child_info_t& c2)
   {
     ceph_assert(ictx->owner_lock.is_locked());
     ceph_assert(ictx->exclusive_lock == nullptr ||
-          ictx->exclusive_lock->is_lock_owner());
+                ictx->exclusive_lock->is_lock_owner());
 
     C_SaferCond ctx;
     ictx->snap_lock.get_read();
index 82bae75e81e6c155c4f92ffdd037a715e9bc320c..739034439f1991fe9a166c1c0fb0d30e2b53122a 100644 (file)
@@ -307,9 +307,9 @@ void Replay<I>::replay_op_ready(uint64_t op_tid, Context *on_resume) {
 
   OpEvent &op_event = op_it->second;
   ceph_assert(op_event.op_in_progress &&
-         op_event.on_op_finish_event == nullptr &&
-         op_event.on_finish_ready == nullptr &&
-         op_event.on_finish_safe == nullptr);
+              op_event.on_op_finish_event == nullptr &&
+              op_event.on_finish_ready == nullptr &&
+              op_event.on_finish_safe == nullptr);
 
   // resume processing replay events
   Context *on_start_ready = nullptr;
@@ -1034,13 +1034,13 @@ void Replay<I>::handle_op_complete(uint64_t op_tid, int r) {
   if (op_event.on_start_ready != nullptr) {
     // blocking op event failed before it became ready
     ceph_assert(op_event.on_finish_ready == nullptr &&
-           op_event.on_finish_safe == nullptr);
+                op_event.on_finish_safe == nullptr);
 
     op_event.on_start_ready->complete(0);
   } else {
     // event kicked off by OpFinishEvent
     ceph_assert((op_event.on_finish_ready != nullptr &&
-            op_event.on_finish_safe != nullptr) || shutting_down);
+                 op_event.on_finish_safe != nullptr) || shutting_down);
   }
 
   if (op_event.on_op_finish_event != nullptr) {
index 2cd75a76bc8acbf4e6432c0be3d473e03ab9482d..5ab35e907ad6912307fe7c13c09632caac5d417a 100644 (file)
@@ -154,7 +154,7 @@ private:
 
     // should have been canceled prior to releasing lock
     ceph_assert(image_ctx.exclusive_lock == nullptr ||
-           image_ctx.exclusive_lock->is_lock_owner());
+                image_ctx.exclusive_lock->is_lock_owner());
 
     RWLock::RLocker snap_locker(image_ctx.snap_lock);
     ceph_assert(image_ctx.object_map != nullptr);
index b93258b9a42520af49862e7927e235a5c3da55d7..f923f36c595ffae5ce36e0b579ae6532c6f7b18d 100644 (file)
@@ -113,7 +113,7 @@ void RebuildObjectMapRequest<I>::send_resize_object_map() {
 
   // should have been canceled prior to releasing lock
   ceph_assert(m_image_ctx.exclusive_lock == nullptr ||
-         m_image_ctx.exclusive_lock->is_lock_owner());
+              m_image_ctx.exclusive_lock->is_lock_owner());
 
   m_image_ctx.object_map->aio_resize(size, OBJECT_NONEXISTENT,
                                      this->create_callback_context());
@@ -128,7 +128,7 @@ void RebuildObjectMapRequest<I>::send_trim_image() {
 
   // should have been canceled prior to releasing lock
   ceph_assert(m_image_ctx.exclusive_lock == nullptr ||
-         m_image_ctx.exclusive_lock->is_lock_owner());
+              m_image_ctx.exclusive_lock->is_lock_owner());
   ldout(cct, 5) << this << " send_trim_image" << dendl;
   m_state = STATE_TRIM_IMAGE;
 
@@ -197,7 +197,7 @@ void RebuildObjectMapRequest<I>::send_save_object_map() {
 
   // should have been canceled prior to releasing lock
   ceph_assert(m_image_ctx.exclusive_lock == nullptr ||
-         m_image_ctx.exclusive_lock->is_lock_owner());
+              m_image_ctx.exclusive_lock->is_lock_owner());
 
   RWLock::RLocker snap_locker(m_image_ctx.snap_lock);
   ceph_assert(m_image_ctx.object_map != nullptr);
@@ -210,7 +210,7 @@ void RebuildObjectMapRequest<I>::send_update_header() {
 
   // should have been canceled prior to releasing lock
   ceph_assert(m_image_ctx.exclusive_lock == nullptr ||
-         m_image_ctx.exclusive_lock->is_lock_owner());
+              m_image_ctx.exclusive_lock->is_lock_owner());
 
   ldout(m_image_ctx.cct, 5) << this << " send_update_header" << dendl;
   m_state = STATE_UPDATE_HEADER;
index 17bc7ff17c6de7ae3ed44f573360374fc68bd43f..69e50e5d7c73dc31a69dc94d6397d53ff6c4faca 100644 (file)
@@ -279,7 +279,7 @@ Context *ResizeRequest<I>::send_grow_object_map() {
 
   // should have been canceled prior to releasing lock
   ceph_assert(image_ctx.exclusive_lock == nullptr ||
-         image_ctx.exclusive_lock->is_lock_owner());
+              image_ctx.exclusive_lock->is_lock_owner());
 
   image_ctx.object_map->aio_resize(
     m_new_size, OBJECT_NONEXISTENT, create_context_callback<
@@ -321,7 +321,7 @@ Context *ResizeRequest<I>::send_shrink_object_map() {
 
   // should have been canceled prior to releasing lock
   ceph_assert(image_ctx.exclusive_lock == nullptr ||
-         image_ctx.exclusive_lock->is_lock_owner());
+              image_ctx.exclusive_lock->is_lock_owner());
 
   image_ctx.object_map->aio_resize(
     m_new_size, OBJECT_NONEXISTENT, create_context_callback<
@@ -381,7 +381,7 @@ void ResizeRequest<I>::send_update_header() {
   // should have been canceled prior to releasing lock
   RWLock::RLocker owner_locker(image_ctx.owner_lock);
   ceph_assert(image_ctx.exclusive_lock == nullptr ||
-         image_ctx.exclusive_lock->is_lock_owner());
+              image_ctx.exclusive_lock->is_lock_owner());
 
   librados::ObjectWriteOperation op;
   if (image_ctx.old_format) {
index 2b693e032dcce552c5de4743160f0ffda2a50ebd..e4cbd4000bc095145cda0e9773beef053a62e85d 100644 (file)
@@ -164,7 +164,7 @@ void SnapshotCreateRequest<I>::send_create_snap() {
 
   // should have been canceled prior to releasing lock
   ceph_assert(image_ctx.exclusive_lock == nullptr ||
-         image_ctx.exclusive_lock->is_lock_owner());
+              image_ctx.exclusive_lock->is_lock_owner());
 
   // save current size / parent info for creating snapshot record in ImageCtx
   m_size = image_ctx.size;
@@ -291,7 +291,7 @@ void SnapshotCreateRequest<I>::update_snap_context() {
 
   // should have been canceled prior to releasing lock
   ceph_assert(image_ctx.exclusive_lock == nullptr ||
-         image_ctx.exclusive_lock->is_lock_owner());
+              image_ctx.exclusive_lock->is_lock_owner());
 
   // immediately add a reference to the new snapshot
   utime_t snap_time = ceph_clock_now();
index 8bc183e1c77913018f5a1cabd57f3f92475d1665..9ba563589dcd3f468c0a096df26e0e81fba3df93 100644 (file)
@@ -41,7 +41,7 @@ public:
     I &image_ctx = this->m_image_ctx;
     ceph_assert(image_ctx.owner_lock.is_locked());
     ceph_assert(image_ctx.exclusive_lock == nullptr ||
-           image_ctx.exclusive_lock->is_lock_owner());
+                image_ctx.exclusive_lock->is_lock_owner());
 
     string oid = image_ctx.get_object_name(m_object_no);
     ldout(image_ctx.cct, 10) << "removing (with copyup) " << oid << dendl;
@@ -71,7 +71,7 @@ public:
     I &image_ctx = this->m_image_ctx;
     ceph_assert(image_ctx.owner_lock.is_locked());
     ceph_assert(image_ctx.exclusive_lock == nullptr ||
-           image_ctx.exclusive_lock->is_lock_owner());
+                image_ctx.exclusive_lock->is_lock_owner());
 
     {
       RWLock::RLocker snap_locker(image_ctx.snap_lock);
@@ -315,7 +315,7 @@ void TrimRequest<I>::send_clean_boundary() {
 
   // should have been canceled prior to releasing lock
   ceph_assert(image_ctx.exclusive_lock == nullptr ||
-         image_ctx.exclusive_lock->is_lock_owner());
+              image_ctx.exclusive_lock->is_lock_owner());
   uint64_t delete_len = m_delete_off - m_new_size;
   ldout(image_ctx.cct, 5) << this << " send_clean_boundary: "
                            << " delete_off=" << m_delete_off