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

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