virtio-balloon: correct the comment of virtballoon_migratepage()
authorXueshi Hu <xueshi.hu@smartx.com>
Sun, 13 Aug 2023 14:07:09 +0000 (22:07 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 1 Nov 2023 13:19:58 +0000 (09:19 -0400)
After commit 68f2736a8583 ("mm: Convert all PageMovable users to
movable_operations"), the execution path has been changed to

move_to_new_folio
movable_operations->migrate_page
balloon_page_migrate
balloon_page_migrate->balloon_page_migrate
balloon_page_migrate

Correct the outdated comment.

Signed-off-by: Xueshi Hu <xueshi.hu@smartx.com>
Message-Id: <20230813140709.835536-1-xueshi.hu@smartx.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Xuan Zhuo <xuanzhuo@linux.alibaba.com>
drivers/virtio/virtio_balloon.c

index 2d5d252ef419727f9685bacc483e4923544b181e..8dff9d2bbe5d4acddf71f024ce348a9dd95bc6d7 100644 (file)
@@ -745,7 +745,7 @@ static void report_free_page_func(struct work_struct *work)
  *  2) update the host about the old page removed from vb->pages list;
  *
  * This function preforms the balloon page migration task.
- * Called through balloon_mapping->a_ops->migratepage
+ * Called through movable_operations->migrate_page
  */
 static int virtballoon_migratepage(struct balloon_dev_info *vb_dev_info,
                struct page *newpage, struct page *page, enum migrate_mode mode)