Blame SOURCES/kvm-bitmaps-Fix-typo-in-function-name.patch

383d26
From e7e2710ac920bb8c62d0b4bb9b95700a087509b5 Mon Sep 17 00:00:00 2001
383d26
From: John Snow <jsnow@redhat.com>
383d26
Date: Wed, 3 Apr 2019 18:18:56 +0200
383d26
Subject: [PATCH 151/163] bitmaps: Fix typo in function name
383d26
383d26
RH-Author: John Snow <jsnow@redhat.com>
383d26
Message-id: <20190403181857.9693-21-jsnow@redhat.com>
383d26
Patchwork-id: 85430
383d26
O-Subject: [RHEL-7.7 qemu-kvm-rhev PATCH 20/21] bitmaps: Fix typo in function name
383d26
Bugzilla: 1677073
383d26
RH-Acked-by: Max Reitz <mreitz@redhat.com>
383d26
RH-Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
383d26
RH-Acked-by: Sergio Lopez Pascual <slp@redhat.com>
383d26
383d26
From: Eric Blake <eblake@redhat.com>
383d26
383d26
Commit a88b179f introduced the ability to set and query bitmap
383d26
persistence, but with an atypical spelling.
383d26
383d26
Signed-off-by: Eric Blake <eblake@redhat.com>
383d26
Message-id: 20190308205845.25734-1-eblake@redhat.com
383d26
Signed-off-by: John Snow <jsnow@redhat.com>
383d26
(cherry picked from commit 796a3798ab882ae78a8203acd335ded4e10e3afb)
383d26
Signed-off-by: John Snow <jsnow@redhat.com>
383d26
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
383d26
---
383d26
 block/dirty-bitmap.c           | 4 ++--
383d26
 block/qcow2-bitmap.c           | 6 +++---
383d26
 blockdev.c                     | 4 ++--
383d26
 include/block/dirty-bitmap.h   | 4 ++--
383d26
 migration/block-dirty-bitmap.c | 4 ++--
383d26
 5 files changed, 11 insertions(+), 11 deletions(-)
383d26
383d26
diff --git a/block/dirty-bitmap.c b/block/dirty-bitmap.c
383d26
index 2139354..59e6ebb 100644
383d26
--- a/block/dirty-bitmap.c
383d26
+++ b/block/dirty-bitmap.c
383d26
@@ -740,7 +740,7 @@ bool bdrv_has_readonly_bitmaps(BlockDriverState *bs)
383d26
 }
383d26
 
383d26
 /* Called with BQL taken. */
383d26
-void bdrv_dirty_bitmap_set_persistance(BdrvDirtyBitmap *bitmap, bool persistent)
383d26
+void bdrv_dirty_bitmap_set_persistence(BdrvDirtyBitmap *bitmap, bool persistent)
383d26
 {
383d26
     qemu_mutex_lock(bitmap->mutex);
383d26
     bitmap->persistent = persistent;
383d26
@@ -765,7 +765,7 @@ void bdrv_dirty_bitmap_set_migration(BdrvDirtyBitmap *bitmap, bool migration)
383d26
     qemu_mutex_unlock(bitmap->mutex);
383d26
 }
383d26
 
383d26
-bool bdrv_dirty_bitmap_get_persistance(BdrvDirtyBitmap *bitmap)
383d26
+bool bdrv_dirty_bitmap_get_persistence(BdrvDirtyBitmap *bitmap)
383d26
 {
383d26
     return bitmap->persistent && !bitmap->migration;
383d26
 }
383d26
diff --git a/block/qcow2-bitmap.c b/block/qcow2-bitmap.c
383d26
index cbab0e5..4d093da 100644
383d26
--- a/block/qcow2-bitmap.c
383d26
+++ b/block/qcow2-bitmap.c
383d26
@@ -970,7 +970,7 @@ bool qcow2_load_dirty_bitmaps(BlockDriverState *bs, Error **errp)
383d26
             goto fail;
383d26
         }
383d26
 
383d26
-        bdrv_dirty_bitmap_set_persistance(bitmap, true);
383d26
+        bdrv_dirty_bitmap_set_persistence(bitmap, true);
383d26
         if (bm->flags & BME_FLAG_IN_USE) {
383d26
             bdrv_dirty_bitmap_set_inconsistent(bitmap);
383d26
         } else {
383d26
@@ -1428,7 +1428,7 @@ void qcow2_store_persistent_dirty_bitmaps(BlockDriverState *bs, Error **errp)
383d26
         uint32_t granularity = bdrv_dirty_bitmap_granularity(bitmap);
383d26
         Qcow2Bitmap *bm;
383d26
 
383d26
-        if (!bdrv_dirty_bitmap_get_persistance(bitmap) ||
383d26
+        if (!bdrv_dirty_bitmap_get_persistence(bitmap) ||
383d26
             bdrv_dirty_bitmap_readonly(bitmap) ||
383d26
             bdrv_dirty_bitmap_inconsistent(bitmap)) {
383d26
             continue;
383d26
@@ -1546,7 +1546,7 @@ int qcow2_reopen_bitmaps_ro(BlockDriverState *bs, Error **errp)
383d26
     for (bitmap = bdrv_dirty_bitmap_next(bs, NULL); bitmap != NULL;
383d26
          bitmap = bdrv_dirty_bitmap_next(bs, bitmap))
383d26
     {
383d26
-        if (bdrv_dirty_bitmap_get_persistance(bitmap)) {
383d26
+        if (bdrv_dirty_bitmap_get_persistence(bitmap)) {
383d26
             bdrv_dirty_bitmap_set_readonly(bitmap, true);
383d26
         }
383d26
     }
383d26
diff --git a/blockdev.c b/blockdev.c
383d26
index e497939..61218b4 100644
383d26
--- a/blockdev.c
383d26
+++ b/blockdev.c
383d26
@@ -3014,7 +3014,7 @@ void qmp_block_dirty_bitmap_add(const char *node, const char *name,
383d26
         bdrv_disable_dirty_bitmap(bitmap);
383d26
     }
383d26
 
383d26
-    bdrv_dirty_bitmap_set_persistance(bitmap, persistent);
383d26
+    bdrv_dirty_bitmap_set_persistence(bitmap, persistent);
383d26
  out:
383d26
     if (aio_context) {
383d26
         aio_context_release(aio_context);
383d26
@@ -3039,7 +3039,7 @@ void qmp_block_dirty_bitmap_remove(const char *node, const char *name,
383d26
         return;
383d26
     }
383d26
 
383d26
-    if (bdrv_dirty_bitmap_get_persistance(bitmap)) {
383d26
+    if (bdrv_dirty_bitmap_get_persistence(bitmap)) {
383d26
         aio_context = bdrv_get_aio_context(bs);
383d26
         aio_context_acquire(aio_context);
383d26
         bdrv_remove_persistent_dirty_bitmap(bs, name, &local_err);
383d26
diff --git a/include/block/dirty-bitmap.h b/include/block/dirty-bitmap.h
383d26
index 2a78243..8044ace 100644
383d26
--- a/include/block/dirty-bitmap.h
383d26
+++ b/include/block/dirty-bitmap.h
383d26
@@ -78,7 +78,7 @@ void bdrv_dirty_bitmap_deserialize_ones(BdrvDirtyBitmap *bitmap,
383d26
 void bdrv_dirty_bitmap_deserialize_finish(BdrvDirtyBitmap *bitmap);
383d26
 
383d26
 void bdrv_dirty_bitmap_set_readonly(BdrvDirtyBitmap *bitmap, bool value);
383d26
-void bdrv_dirty_bitmap_set_persistance(BdrvDirtyBitmap *bitmap,
383d26
+void bdrv_dirty_bitmap_set_persistence(BdrvDirtyBitmap *bitmap,
383d26
                                        bool persistent);
383d26
 void bdrv_dirty_bitmap_set_inconsistent(BdrvDirtyBitmap *bitmap);
383d26
 void bdrv_dirty_bitmap_set_busy(BdrvDirtyBitmap *bitmap, bool busy);
383d26
@@ -103,7 +103,7 @@ void bdrv_dirty_bitmap_truncate(BlockDriverState *bs, int64_t bytes);
383d26
 bool bdrv_dirty_bitmap_readonly(const BdrvDirtyBitmap *bitmap);
383d26
 bool bdrv_has_readonly_bitmaps(BlockDriverState *bs);
383d26
 bool bdrv_dirty_bitmap_get_autoload(const BdrvDirtyBitmap *bitmap);
383d26
-bool bdrv_dirty_bitmap_get_persistance(BdrvDirtyBitmap *bitmap);
383d26
+bool bdrv_dirty_bitmap_get_persistence(BdrvDirtyBitmap *bitmap);
383d26
 bool bdrv_dirty_bitmap_inconsistent(const BdrvDirtyBitmap *bitmap);
383d26
 bool bdrv_has_changed_persistent_bitmaps(BlockDriverState *bs);
383d26
 BdrvDirtyBitmap *bdrv_dirty_bitmap_next(BlockDriverState *bs,
383d26
diff --git a/migration/block-dirty-bitmap.c b/migration/block-dirty-bitmap.c
383d26
index 06ab58d..3beac29 100644
383d26
--- a/migration/block-dirty-bitmap.c
383d26
+++ b/migration/block-dirty-bitmap.c
383d26
@@ -321,7 +321,7 @@ static int init_dirty_bitmap_migration(void)
383d26
             if (bdrv_dirty_bitmap_enabled(bitmap)) {
383d26
                 dbms->flags |= DIRTY_BITMAP_MIG_START_FLAG_ENABLED;
383d26
             }
383d26
-            if (bdrv_dirty_bitmap_get_persistance(bitmap)) {
383d26
+            if (bdrv_dirty_bitmap_get_persistence(bitmap)) {
383d26
                 dbms->flags |= DIRTY_BITMAP_MIG_START_FLAG_PERSISTENT;
383d26
             }
383d26
 
383d26
@@ -473,7 +473,7 @@ static int dirty_bitmap_load_start(QEMUFile *f, DirtyBitmapLoadState *s)
383d26
     }
383d26
 
383d26
     if (flags & DIRTY_BITMAP_MIG_START_FLAG_PERSISTENT) {
383d26
-        bdrv_dirty_bitmap_set_persistance(s->bitmap, true);
383d26
+        bdrv_dirty_bitmap_set_persistence(s->bitmap, true);
383d26
     }
383d26
 
383d26
     bdrv_disable_dirty_bitmap(s->bitmap);
383d26
-- 
383d26
1.8.3.1
383d26