aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYunfeng Ye <[email protected]>2019-11-30 17:53:41 -0800
committerLinus Torvalds <[email protected]>2019-12-01 12:59:04 -0800
commit7506851837350e112685ddf4d13ba03a558f9e20 (patch)
tree7c3ea46fcdaf0ce0e73446d257fb8fe8293504ad
parentfeec24a6139d4640c6ef344e0271a8cd4d509e60 (diff)
mm/memory-failure.c: use page_shift() in add_to_kill()
page_shift() is supported after the commit 94ad9338109f ("mm: introduce page_shift()"). So replace with page_shift() in add_to_kill() for readability. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Yunfeng Ye <[email protected]> Reviewed-by: David Hildenbrand <[email protected]> Acked-by: Naoya Horiguchi <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
-rw-r--r--mm/memory-failure.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/memory-failure.c b/mm/memory-failure.c
index af2712004a4d..41c634f45d45 100644
--- a/mm/memory-failure.c
+++ b/mm/memory-failure.c
@@ -320,7 +320,7 @@ static void add_to_kill(struct task_struct *tsk, struct page *p,
if (is_zone_device_page(p))
tk->size_shift = dev_pagemap_mapping_shift(p, vma);
else
- tk->size_shift = compound_order(compound_head(p)) + PAGE_SHIFT;
+ tk->size_shift = page_shift(compound_head(p));
/*
* Send SIGKILL if "tk->addr == -EFAULT". Also, as