Let's use the generic onlining function - which will now also take care
of calling kernel_map_pages().

Cc: "K. Y. Srinivasan" <[email protected]>
Cc: Haiyang Zhang <[email protected]>
Cc: Stephen Hemminger <[email protected]>
Cc: Sasha Levin <[email protected]>
Signed-off-by: David Hildenbrand <[email protected]>
---
 drivers/hv/hv_balloon.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/hv/hv_balloon.c b/drivers/hv/hv_balloon.c
index a91c90d4402c..35f123b459c8 100644
--- a/drivers/hv/hv_balloon.c
+++ b/drivers/hv/hv_balloon.c
@@ -680,8 +680,7 @@ static void hv_page_online_one(struct hv_hotadd_state *has, 
struct page *pg)
                __ClearPageOffline(pg);
 
        /* This frame is currently backed; online the page. */
-       __online_page_increment_counters(pg);
-       __online_page_free(pg);
+       generic_online_page(pg, 0);
 
        lockdep_assert_held(&dm_device.ha_lock);
        dm_device.num_pages_onlined++;
-- 
2.21.0

Reply via email to