From: akpm@linux-foundation.org
To: akpm@linux-foundation.org, cai@lca.pw, dan.j.williams@intel.com,
david@redhat.com, haiyangz@microsoft.com, kys@microsoft.com,
linux-mm@kvack.org, mhocko@suse.com, mm-commits@vger.kernel.org,
osalvador@suse.com, pasha.tatashin@soleen.com,
richard.weiyang@gmail.com, sashal@kernel.org,
sthemmin@microsoft.com, torvalds@linux-foundation.org
Subject: [patch 077/158] hv_balloon: use generic_online_page()
Date: Sat, 30 Nov 2019 17:53:55 -0800 [thread overview]
Message-ID: <20191201015355.jHjwCMvVx%akpm@linux-foundation.org> (raw)
From: David Hildenbrand <david@redhat.com>
Subject: hv_balloon: use generic_online_page()
Let's use the generic onlining function - which will now also take care
of calling kernel_map_pages().
Link: http://lkml.kernel.org/r/20190909114830.662-3-david@redhat.com
Signed-off-by: David Hildenbrand <david@redhat.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Cc: "K. Y. Srinivasan" <kys@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Cc: Stephen Hemminger <sthemmin@microsoft.com>
Cc: Sasha Levin <sashal@kernel.org>
Cc: Dan Williams <dan.j.williams@intel.com>
Cc: Oscar Salvador <osalvador@suse.com>
Cc: Pavel Tatashin <pasha.tatashin@soleen.com>
Cc: Qian Cai <cai@lca.pw>
Cc: Wei Yang <richard.weiyang@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
drivers/hv/hv_balloon.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
--- a/drivers/hv/hv_balloon.c~hv_balloon-use-generic_online_page
+++ a/drivers/hv/hv_balloon.c
@@ -681,8 +681,7 @@ static void hv_page_online_one(struct hv
/* This frame is currently backed; online the page. */
__online_page_set_limits(pg);
- __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++;
_
reply other threads:[~2019-12-01 1:53 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20191201015355.jHjwCMvVx%akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=cai@lca.pw \
--cc=dan.j.williams@intel.com \
--cc=david@redhat.com \
--cc=haiyangz@microsoft.com \
--cc=kys@microsoft.com \
--cc=linux-mm@kvack.org \
--cc=mhocko@suse.com \
--cc=mm-commits@vger.kernel.org \
--cc=osalvador@suse.com \
--cc=pasha.tatashin@soleen.com \
--cc=richard.weiyang@gmail.com \
--cc=sashal@kernel.org \
--cc=sthemmin@microsoft.com \
--cc=torvalds@linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).