Skip to content

Commit

Permalink
mm/memory-failure.c: use page_shift() in add_to_kill()
Browse files Browse the repository at this point in the history
page_shift() is supported after the commit 94ad933 ("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]>
  • Loading branch information
yeyunfeng-dev authored and torvalds committed Dec 1, 2019
1 parent feec24a commit 7506851
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/memory-failure.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7506851

Please sign in to comment.