mm/memory-failure.c: use page_shift() in add_to_kill()
Subsystems (2)
[email protected]
maintainerPATCH 73/158 mm/memory-failure.c: use page_shift() in add_to_kill()
From: Yunfeng Ye <[email protected]>
Subject: 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.
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]>
---
mm/memory-failure.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
mm/memory-failure.c renamed from mm/memory-failure.c~mm-memory-failurec-replace-with-page_shift-in-add_to_kill +1 -1
@@ -320,7 +320,7 @@ static void add_to_kill(struct task_struif (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
_