summaryrefslogtreecommitdiff
path: root/mm
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2018-08-22 07:04:45 +0000
committerJohannes Weiner <hannes@cmpxchg.org>2018-08-22 07:04:45 +0000
commitb733766aca145da48b44f1bd0160366e633b947d (patch)
tree4f3e1b1800bc8d804736b6dfc8b8acbd7020b9ce /mm
parent26e74bbdab5babde49360a01fc950105d2590f62 (diff)
mm-soft-offline-close-the-race-against-page-allocation-fix
tweak set_hwpoison_free_buddy_page() comment Cc: Michal Hocko <mhocko@kernel.org> Cc: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com> Cc: Xishi Qiu <xishi.qiuxishi@alibaba-inc.com> Cc: <zy.zhengyi@alibaba-inc.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r--mm/page_alloc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index fea8e9187eed..92b6f47e4511 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -8102,8 +8102,9 @@ bool is_free_buddy_page(struct page *page)
#ifdef CONFIG_MEMORY_FAILURE
/*
- * Set PG_hwpoison flag if a given page is confirmed to be a free page
- * within zone lock, which prevents the race against page allocation.
+ * Set PG_hwpoison flag if a given page is confirmed to be a free page. This
+ * test is performed under the zone lock to prevent a race against page
+ * allocation.
*/
bool set_hwpoison_free_buddy_page(struct page *page)
{