Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp8033122ybn; Tue, 1 Oct 2019 02:02:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqxFuR2I729kyCstCzwaJRaJs15/w1iek6aYcvG5ch8rD/UqlKgmLCqiyl9ERcVy19/Pcuxt X-Received: by 2002:aa7:c614:: with SMTP id h20mr23615280edq.209.1569920552614; Tue, 01 Oct 2019 02:02:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569920552; cv=none; d=google.com; s=arc-20160816; b=zMWGHYAhDUsq2P9ZiGWV5VuqqDfbU94u9izKRgu6ekSDpmAYsmBvrtMwTveGoqrOQq vEka/IGAWNTO4XIRGiWSMwmVHqN2hxNQfWTq4Dun6p/53WCdV5HpklAn1DRpcWWzMha4 DHxbFEVukZdr0+0QpKgnefjrW4M509WZ0excm6kZG3DosfaLlyIC+iEp/QN0xPx+NN7C wB6WFDIJCq44SSkd4RiqACfhy8F1Kt2j9BkSiafF81SJDqCij2rF+VFU3eonX6bb+APp sXQqbtVPq/kf/5z1uc+rzgq5GingFLum1bUdXlmQMjm8hhz/TxSTcGmR9EvvYdUdEUTj mBtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=Gpa93I+xpRxGN7QAH/D8MlLQMMKUYJN+vT4pnqd6XEc=; b=TwTxvZ5mV4OyJh8ePDllNxz4phAZJX6InW0ccmtLDRVvx6QhHMVBTWv8FvHOnsxvaM 6Y6FDJy7k7znz6KgCPkTJ11gBBPCNH6BwP7vihAq0einxAn+XQVEUsJ2XoVUO6DtmwT6 H6SDYHXJU8s3HWZ9FXN7JnqH4l8Fi0ZpOccedGxv0GOEGCmXNS6d/3VgBsIWE7UyohY/ 6D5tF+u1+Mb6flfbJbf+TPSG2bYXzriyMq3PsNgdkw4IMNqmI1KQ1weAo0Ob2XQz+Hib UE24D1+CEDkGTCJt0WrSVRu8Z/cpCvbEHZKQUdVQRVNizszb/Dq9UWXsTdGEggQtGxjS WaHg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w8si8353957edq.391.2019.10.01.02.02.07; Tue, 01 Oct 2019 02:02:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733183AbfJAJCA (ORCPT + 99 others); Tue, 1 Oct 2019 05:02:00 -0400 Received: from mx1.redhat.com ([209.132.183.28]:43996 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729787AbfJAJB7 (ORCPT ); Tue, 1 Oct 2019 05:01:59 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 4F203554CD; Tue, 1 Oct 2019 09:01:59 +0000 (UTC) Received: from t460s.redhat.com (ovpn-117-182.ams2.redhat.com [10.36.117.182]) by smtp.corp.redhat.com (Postfix) with ESMTP id C8CA91D9; Tue, 1 Oct 2019 09:01:57 +0000 (UTC) From: David Hildenbrand To: linux-kernel@vger.kernel.org Cc: linux-mm@kvack.org, xen-devel@lists.xenproject.org, David Hildenbrand , Boris Ostrovsky , Juergen Gross , Stefano Stabellini Subject: [PATCH v1 1/3] xen/balloon: Drop __balloon_append() Date: Tue, 1 Oct 2019 11:01:50 +0200 Message-Id: <20191001090152.1770-2-david@redhat.com> In-Reply-To: <20191001090152.1770-1-david@redhat.com> References: <20191001090152.1770-1-david@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Tue, 01 Oct 2019 09:01:59 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Let's simply use balloon_append() directly. Cc: Boris Ostrovsky Cc: Juergen Gross Cc: Stefano Stabellini Signed-off-by: David Hildenbrand --- drivers/xen/balloon.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/drivers/xen/balloon.c b/drivers/xen/balloon.c index 91cba70b69df..37443c5fda99 100644 --- a/drivers/xen/balloon.c +++ b/drivers/xen/balloon.c @@ -156,7 +156,7 @@ static DECLARE_DELAYED_WORK(balloon_worker, balloon_process); (GFP_HIGHUSER | __GFP_NOWARN | __GFP_NORETRY | __GFP_NOMEMALLOC) /* balloon_append: add the given page to the balloon. */ -static void __balloon_append(struct page *page) +static void balloon_append(struct page *page) { /* Lowmem is re-populated first, so highmem pages go at list tail. */ if (PageHighMem(page)) { @@ -169,11 +169,6 @@ static void __balloon_append(struct page *page) wake_up(&balloon_wq); } -static void balloon_append(struct page *page) -{ - __balloon_append(page); -} - /* balloon_retrieve: rescue a page from the balloon, if it is not empty. */ static struct page *balloon_retrieve(bool require_lowmem) { @@ -378,7 +373,7 @@ static void xen_online_page(struct page *page, unsigned int order) p = pfn_to_page(start_pfn + i); __online_page_set_limits(p); __SetPageOffline(p); - __balloon_append(p); + balloon_append(p); } mutex_unlock(&balloon_mutex); } @@ -689,7 +684,7 @@ static void __init balloon_add_region(unsigned long start_pfn, include the boot-time balloon extension, so don't subtract from it. */ __SetPageOffline(page); - __balloon_append(page); + balloon_append(page); } balloon_stats.total_pages += extra_pfn_end - start_pfn; -- 2.21.0