From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7B0D2C4740A for ; Mon, 9 Sep 2019 11:48:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 54E43218DE for ; Mon, 9 Sep 2019 11:48:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732847AbfIILsk (ORCPT ); Mon, 9 Sep 2019 07:48:40 -0400 Received: from mx1.redhat.com ([209.132.183.28]:52850 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732500AbfIILsj (ORCPT ); Mon, 9 Sep 2019 07:48:39 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 5F33A302455F; Mon, 9 Sep 2019 11:48:39 +0000 (UTC) Received: from t460s.redhat.com (ovpn-116-173.ams2.redhat.com [10.36.116.173]) by smtp.corp.redhat.com (Postfix) with ESMTP id 69F13100197A; Mon, 9 Sep 2019 11:48:31 +0000 (UTC) From: David Hildenbrand To: linux-kernel@vger.kernel.org Cc: linux-mm@kvack.org, Souptick Joarder , linux-hyperv@vger.kernel.org, David Hildenbrand , Andrew Morton , Dan Williams , Haiyang Zhang , "K. Y. Srinivasan" , Michal Hocko , Oscar Salvador , Pavel Tatashin , Qian Cai , Sasha Levin , Stephen Hemminger , Wei Yang Subject: [PATCH v1 0/3] mm/memory_hotplug: Export generic_online_page() Date: Mon, 9 Sep 2019 13:48:27 +0200 Message-Id: <20190909114830.662-1-david@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.49]); Mon, 09 Sep 2019 11:48:39 +0000 (UTC) Sender: linux-hyperv-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-hyperv@vger.kernel.org Based on linux/next + "[PATCH 0/3] Remove __online_page_set_limits()" Let's replace the __online_page...() functions by generic_online_page(). Hyper-V only wants to delay the actual onlining of un-backed pages, so we can simpy re-use the generic function. Only compile-tested. Cc: Souptick Joarder David Hildenbrand (3): mm/memory_hotplug: Export generic_online_page() hv_balloon: Use generic_online_page() mm/memory_hotplug: Remove __online_page_free() and __online_page_increment_counters() drivers/hv/hv_balloon.c | 3 +-- include/linux/memory_hotplug.h | 4 +--- mm/memory_hotplug.c | 17 ++--------------- 3 files changed, 4 insertions(+), 20 deletions(-) -- 2.21.0