]> git.baikalelectronics.ru Git - kernel.git/commit
mm/memory-failure.c: use page_shift() in add_to_kill()
authorYunfeng Ye <yeyunfeng@huawei.com>
Sun, 1 Dec 2019 01:53:41 +0000 (17:53 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 1 Dec 2019 20:59:04 +0000 (12:59 -0800)
commit11472326a027f0b7e4f4cbfa95499080f2c5c651
tree7c3ea46fcdaf0ce0e73446d257fb8fe8293504ad
parent19cc93770af5094db6530bb0196a414567617422
mm/memory-failure.c: use page_shift() in add_to_kill()

page_shift() is supported after the commit b176076ec769 ("mm: introduce
page_shift()").

So replace with page_shift() in add_to_kill() for readability.

Link: http://lkml.kernel.org/r/543d8bc9-f2e7-3023-7c35-2e7ed67c0e82@huawei.com
Signed-off-by: Yunfeng Ye <yeyunfeng@huawei.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Acked-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/memory-failure.c