From patchwork Sat Sep 7 21:47:03 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Souptick Joarder X-Patchwork-Id: 11136691 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 051C916B1 for ; Sat, 7 Sep 2019 21:43:25 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D20D321848 for ; Sat, 7 Sep 2019 21:43:24 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="kwSx+U26" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D20D321848 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1i6iSb-0007TV-UO; Sat, 07 Sep 2019 21:41:33 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1i6iSa-0007TN-Sq for xen-devel@lists.xenproject.org; Sat, 07 Sep 2019 21:41:32 +0000 X-Inumbo-ID: 41d06b80-d1b8-11e9-978d-bc764e2007e4 Received: from mail-pg1-x543.google.com (unknown [2607:f8b0:4864:20::543]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 41d06b80-d1b8-11e9-978d-bc764e2007e4; Sat, 07 Sep 2019 21:41:32 +0000 (UTC) Received: by mail-pg1-x543.google.com with SMTP id x15so5487382pgg.8 for ; Sat, 07 Sep 2019 14:41:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=rar7+a8LD0KANAp/lVeGtNr0VZS4OVkIBwxcWjVF7fo=; b=kwSx+U26sg/1ZFJEwjbGN++gHnIHb25rHZQsX7kQge9MWN2Wn/8QiDbNh5Yx/3ecs0 1zEkIP8zO8k8w4wnReHUF009lMiHIidZHKDpcJx6DabjzX3j+xIFQpAF6Am1pHQScsyx A2iliUkyQT0+XOOHJdQ2Uf7WvinVvPa0XTTlUL5NwE0EoE/Jd8nqZndeJn1xBgJf8JLy GesKao2qJon0PnciwA1FJofqTgS8vpb+86V6Mn/Z0cGUv1AGRaKYz5CmQ9OEkLlr+e/Y 1jaz9g9YSTdBJ83S6AWzyyrD7cza1zehSuSFX1wB42VOeTMc9t9QlzckCkzKCaKVKELm 3I6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=rar7+a8LD0KANAp/lVeGtNr0VZS4OVkIBwxcWjVF7fo=; b=RB+gUvfRz0a1phLuBXlbCCyMQB8Mdk5E4WFbDI1K9OBNNxCcTxzDN6fhry2NcvcoZo 6zLtimJfEKCHmgTNLQ2rThezrSqnVu/hqq7xgkEWu9LVCtzd95J+lgnSDdP05rKt1mqQ FJjMuecPRAAWWHueMkxiORgtVufQvXgXOtWEDEHGGVK+HneifRysquusK28fxDWB1Bam SxrBUIePSWF3Zba2ysUN6beq6Sq4LfelR45ScU4C1MiJAcu6wUZsm5ppyNUwdmqiSvV2 uGyadO1Ewk1mgQEeTIPKhSs6Cy+Z2R9TcEW72knoTbejaZLSqjYk7g6OsfmwBOg9viFx r5fA== X-Gm-Message-State: APjAAAUWuab9GCeTl5bwwjX2VF6tCwcZefds8+t468BZIKryt95qFX3H sncXxgmAofNb4OxO1Mih8Es= X-Google-Smtp-Source: APXvYqwoZAkoLr5to9U2rXC0sBG3iafTZgw6qEDbSJDElFdfik0viB+6vT7qjTj7VVZh0WLTfkqGzA== X-Received: by 2002:a62:1658:: with SMTP id 85mr19104372pfw.195.1567892491692; Sat, 07 Sep 2019 14:41:31 -0700 (PDT) Received: from localhost.localdomain ([112.79.80.177]) by smtp.gmail.com with ESMTPSA id h11sm9078516pgv.5.2019.09.07.14.41.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 07 Sep 2019 14:41:30 -0700 (PDT) From: Souptick Joarder To: kys@microsoft.com, haiyangz@microsoft.com, sthemmin@microsoft.com, sashal@kernel.org, boris.ostrovsky@oracle.com, jgross@suse.com, sstabellini@kernel.org, akpm@linux-foundation.org, david@redhat.com, osalvador@suse.com, mhocko@suse.com, pasha.tatashin@soleen.com, dan.j.williams@intel.com, richard.weiyang@gmail.com, cai@lca.pw Date: Sun, 8 Sep 2019 03:17:03 +0530 Message-Id: <854db2cf8145d9635249c95584d9a91fd774a229.1567889743.git.jrdr.linux@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: References: In-Reply-To: References: Subject: [Xen-devel] [PATCH 2/3] xen/ballon: Avoid calling dummy function __online_page_set_limits() X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Souptick Joarder , xen-devel@lists.xenproject.org, linux-hyperv@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" __online_page_set_limits() is a dummy function and an extra call to this function can be avoided. Signed-off-by: Souptick Joarder Reviewed-by: Juergen Gross Reviewed-by: David Hildenbrand --- drivers/xen/balloon.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/xen/balloon.c b/drivers/xen/balloon.c index 4e11de6..05b1f7e 100644 --- a/drivers/xen/balloon.c +++ b/drivers/xen/balloon.c @@ -376,7 +376,6 @@ static void xen_online_page(struct page *page, unsigned int order) mutex_lock(&balloon_mutex); for (i = 0; i < size; i++) { p = pfn_to_page(start_pfn + i); - __online_page_set_limits(p); __SetPageOffline(p); __balloon_append(p); }