Skip to contentSkip to conversation

memory: correct the comment to DIRTY_MEMORY_MIGRATION

PATCH Applied Wei Yang 2 participants 2 messages Apr 26, 2019 – Apr 30, 2019

lore
Share & tools
lore

Wei Yang

author
#0 lore raw

PATCH 1/1 memory: correct the comment to DIRTY_MEMORY_MIGRATION

The dirty bit is DIRTY_MEMORY_MIGRATION. Correct the comment.

---
 memory.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
memory.c +2 -2
index e49369d85d..9d015bfe4c 100644
@@ -2576,7 +2576,7 @@ void memory_global_dirty_log_start(void)
 
     MEMORY_LISTENER_CALL_GLOBAL(log_global_start, Forward);
 
-    /* Refresh DIRTY_LOG_MIGRATION bit.  */
+    /* Refresh DIRTY_MEMORY_MIGRATION bit.  */
     memory_region_transaction_begin();
     memory_region_update_pending = true;
     memory_region_transaction_commit();
@@ -2586,7 +2586,7 @@ static void memory_global_dirty_log_do_stop(void)
 {
     global_dirty_log = false;
 
-    /* Refresh DIRTY_LOG_MIGRATION bit.  */
+    /* Refresh DIRTY_MEMORY_MIGRATION bit.  */
     memory_region_transaction_begin();
     memory_region_update_pending = true;
     memory_region_transaction_commit();
Signature · 1 line
2.19.1
#1 lore raw
Quoted 22 lines · Wei Yang

The dirty bit is DIRTY_MEMORY_MIGRATION. Correct the comment.

---
 memory.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
memory.c +1 -1
index e49369d85d..9d015bfe4c 100644
@@ -2576,7 +2576,7 @@ void memory_global_dirty_log_start(void)
 
     MEMORY_LISTENER_CALL_GLOBAL(log_global_start, Forward);
 
-    /* Refresh DIRTY_LOG_MIGRATION bit.  */
+    /* Refresh DIRTY_MEMORY_MIGRATION bit.  */
     memory_region_transaction_begin();
     memory_region_update_pending = true;
     memory_region_transaction_commit();

memory.c static void memory_global_dirty_log_do_stop(void) · line 2592

Quoted 8 lines
memory.c +1 -1
@@ -2586,7 +2586,7 @@ static void memory_global_dirty_log_do_stop(void)
 {
     global_dirty_log = false;
 
-    /* Refresh DIRTY_LOG_MIGRATION bit.  */
+    /* Refresh DIRTY_MEMORY_MIGRATION bit.  */
     memory_region_transaction_begin();
     memory_region_update_pending = true;
     memory_region_transaction_commit();

Queued, thanks.

Paolo