From patchwork Sat Sep 7 21:47:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Souptick Joarder X-Patchwork-Id: 11136683 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 BFE391395 for ; Sat, 7 Sep 2019 21:42:56 +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 9AC5621835 for ; Sat, 7 Sep 2019 21:42:56 +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="Ujox5d06" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9AC5621835 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 1i6iSV-0007TC-LE; Sat, 07 Sep 2019 21:41:27 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1i6iSU-0007T3-0h for xen-devel@lists.xenproject.org; Sat, 07 Sep 2019 21:41:26 +0000 X-Inumbo-ID: 3da1293c-d1b8-11e9-978d-bc764e2007e4 Received: from mail-pg1-x542.google.com (unknown [2607:f8b0:4864:20::542]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 3da1293c-d1b8-11e9-978d-bc764e2007e4; Sat, 07 Sep 2019 21:41:25 +0000 (UTC) Received: by mail-pg1-x542.google.com with SMTP id 4so5469274pgm.12 for ; Sat, 07 Sep 2019 14:41:25 -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=Zj674LUoNkKvSpexmegA5PsZaKcGFKG4/kThw6ZXlmw=; b=Ujox5d061GkoJp1y4gs3/uinU01AK46f9UdarPx27G2y1doaNX1SE5I+pgGob0a5xq D7naagu+P+UhLSm36uYT2/ZbPOVD/+lYyDb62ieH655Wfp1Twoitw1+DetYB6tJoYZV7 mAPa5PZfA5MTIzejdGl0ftr1u6aapyu99pEq4yrW30hF6rh0oBUjUsVaWDhokWEfSmEy YHkz/g2ZSRovh5Hz45kJJynuABEvmOrcI9AmcO/Pzqhro3NT3c7vO5cgFaH4d4Hk15Px KAy/zaOFRAsiJiQ2Iqpeigz8cpiyCt5vtvHH12MLqnzlhnDJ87YKjN09D3C9lwP5wCTo 0mfA== 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=Zj674LUoNkKvSpexmegA5PsZaKcGFKG4/kThw6ZXlmw=; b=j8jvqlBSi8O4xkjzuWEp3rkcaIvvSkDrsixNXFIZDiFoy2H7kcZ8eQtw/jKeTdud5C nd7qPf/65SdlJAMTqf83YboLrrtmGPJtUv7LhF+S9RiGYcsDYDHzPXFaIx9nuGsOvwdj RUoKfO/FUTbseurPvbBQoFN6chRURwkHVuooAGZ1pnVzGezjui0p2EFJZk6c93GS8wKD qy1YCASs5B74lDbNsDbdi7CrKPD5iqtdGDAVwyV4d+ZkogSJA+DxV6wScVDMXTT/TBzL mcuZ/RDMZkgHHxOyAspE++IStdV5lp6TtVAIJQ8UjvJdliZ963B4aMFLsmeyzLYODlT1 Jcjw== X-Gm-Message-State: APjAAAWPfVi1c6GnJEUe+fjIYggXI2I+wQtZmg46g7cx+DS6pL/YkwXR 4VpUkDlwZ/1D0j/Pdy/WpBg= X-Google-Smtp-Source: APXvYqxfWkn27m4YwwErHi0RMDLqVgW7yc2OyNzSnRttW+TV1ma82at8a0X804W7PsbzNHRM+aaXvw== X-Received: by 2002:a65:430b:: with SMTP id j11mr14111649pgq.383.1567892484556; Sat, 07 Sep 2019 14:41:24 -0700 (PDT) Received: from localhost.localdomain ([112.79.80.177]) by smtp.gmail.com with ESMTPSA id h11sm9078516pgv.5.2019.09.07.14.41.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 07 Sep 2019 14:41:23 -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:02 +0530 Message-Id: <8e1bc9d3b492f6bde16e95ebc1dee11d6aefabd7.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 1/3] hv_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: David Hildenbrand --- drivers/hv/hv_balloon.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/hv/hv_balloon.c b/drivers/hv/hv_balloon.c index 6fb4ea5..9bab443 100644 --- a/drivers/hv/hv_balloon.c +++ b/drivers/hv/hv_balloon.c @@ -680,7 +680,6 @@ 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_set_limits(pg); __online_page_increment_counters(pg); __online_page_free(pg); 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); } From patchwork Sat Sep 7 21:47:04 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Souptick Joarder X-Patchwork-Id: 11136685 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 CFBE41395 for ; Sat, 7 Sep 2019 21:42:58 +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 AB09321835 for ; Sat, 7 Sep 2019 21:42:58 +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="LCqusXSt" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AB09321835 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 1i6iSj-0007Va-89; Sat, 07 Sep 2019 21:41:41 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1i6iSi-0007VG-03 for xen-devel@lists.xenproject.org; Sat, 07 Sep 2019 21:41:40 +0000 X-Inumbo-ID: 4600f990-d1b8-11e9-978d-bc764e2007e4 Received: from mail-pf1-x444.google.com (unknown [2607:f8b0:4864:20::444]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 4600f990-d1b8-11e9-978d-bc764e2007e4; Sat, 07 Sep 2019 21:41:39 +0000 (UTC) Received: by mail-pf1-x444.google.com with SMTP id y72so6729301pfb.12 for ; Sat, 07 Sep 2019 14:41:39 -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=roF+iHytDA2OpX6EAs6vae/MbSREfIb/2EmgYW70LGY=; b=LCqusXStz2S5t5Jo03KSnHbdxvW5JnsBIMaaxJRM/k++WE4/icVGE/B9clTcqDPqzr e+6bcZNXENyZPcxqezTzfGSBa1s2TTVHZSswaU1Q/gsVktt+7t4uh6VhJs2wcOEH+rK2 7EINf8UFuBSovxqmpSsvGmkG7tPc2yxjQt9m58rxPK7IS7zOWR4d+Fv0Qwyp7lzd0wnl KHjiirC1iZTH9ejrMEEPJ859Vod3vSehrRREj21RGvtTebumbB5EmAPCweCBjVlNlnoX xhc2cIqSXEGo0SCZjGNrGJGibWee8BvXhvv/LQ1Qyc2aoKu/JzyGwG0fBb4wq6PYyw7Q Nl1Q== 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=roF+iHytDA2OpX6EAs6vae/MbSREfIb/2EmgYW70LGY=; b=OHdSlcJbiCBPUDEz+Z08251ixz/EoDJbsqRJaqPiafA0BpcVctBGBj+4PTkexLdXJd eGfC83pFfD0X/dVDWZqhgC/Z42PzwD4w1EDvEy34SyMJqcWDBstxU6ydNlf4LQjfgPBz YBFXxBW5LK4dG8YgcQh0oD3+I/OrsFVOuxAL9HYf6tTfpNwUY5czUeUaAM8m3htAuTWz f4FvAHQfEu/MfL3XX/Ka0WILFw4PUMSnE9EiGGMfosom4f6FtAfvGCoJgmwNhMt1guAI MCOpBhuIPLFLjoX+aERXKrKsMry0RbP9eKw/61UKWJ/YPLcfkSKli1GdrbQnMQbRbgWX zsug== X-Gm-Message-State: APjAAAUW5xjUL1YeePGndUuuSO5fj5aW7mlCvDhaNBpIAwH7DFDPEMPp TJTdVZLMLanZNrCLinSfoU4= X-Google-Smtp-Source: APXvYqyFSnMx/7lAMSE2e3lPA0RN+xaQcUoIMVlsQ0qfqgUp72SQW3UUmlrUThMTSeTxYPzNir9e5Q== X-Received: by 2002:aa7:955d:: with SMTP id w29mr18821170pfq.60.1567892498622; Sat, 07 Sep 2019 14:41:38 -0700 (PDT) Received: from localhost.localdomain ([112.79.80.177]) by smtp.gmail.com with ESMTPSA id h11sm9078516pgv.5.2019.09.07.14.41.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 07 Sep 2019 14:41:37 -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:04 +0530 Message-Id: <9afe6c5a18158f3884a6b302ac2c772f3da49ccc.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 3/3] mm/memory_hotplug.c: Remove __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" As both the callers of this dummy __online_page_set_limits() is removed, this can be removed permanently. Signed-off-by: Souptick Joarder Reviewed-by: David Hildenbrand --- include/linux/memory_hotplug.h | 1 - mm/memory_hotplug.c | 5 ----- 2 files changed, 6 deletions(-) diff --git a/include/linux/memory_hotplug.h b/include/linux/memory_hotplug.h index f46ea71..8ee3a2a 100644 --- a/include/linux/memory_hotplug.h +++ b/include/linux/memory_hotplug.h @@ -105,7 +105,6 @@ extern unsigned long __offline_isolated_pages(unsigned long start_pfn, extern int set_online_page_callback(online_page_callback_t callback); extern int restore_online_page_callback(online_page_callback_t callback); -extern void __online_page_set_limits(struct page *page); extern void __online_page_increment_counters(struct page *page); extern void __online_page_free(struct page *page); diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c index c73f099..dc0118f 100644 --- a/mm/memory_hotplug.c +++ b/mm/memory_hotplug.c @@ -604,11 +604,6 @@ int restore_online_page_callback(online_page_callback_t callback) } EXPORT_SYMBOL_GPL(restore_online_page_callback); -void __online_page_set_limits(struct page *page) -{ -} -EXPORT_SYMBOL_GPL(__online_page_set_limits); - void __online_page_increment_counters(struct page *page) { adjust_managed_page_count(page, 1);