From: Miaohe Lin Date: Tue, 22 Mar 2022 21:44:24 +0000 (-0700) Subject: mm/memory-failure.c: remove PageSlab check in hwpoison_filter_dev X-Git-Tag: baikal/aarch64/sdk6.1~4438^2~111 X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=8bfacfa90c88a3b9c6be16555248db20009c31d2;p=kernel.git mm/memory-failure.c: remove PageSlab check in hwpoison_filter_dev Since commit 836af871a108 ("mm: fix crash when using XFS on loopback"), page_mapping() can handle the Slab pages. So remove this unnecessary PageSlab check and obsolete comment. Link: https://lkml.kernel.org/r/20220218090118.1105-6-linmiaohe@huawei.com Signed-off-by: Miaohe Lin Acked-by: Naoya Horiguchi Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/memory-failure.c b/mm/memory-failure.c index 79a32be5e7df3..ac3d582d84b2b 100644 --- a/mm/memory-failure.c +++ b/mm/memory-failure.c @@ -130,12 +130,6 @@ static int hwpoison_filter_dev(struct page *p) hwpoison_filter_dev_minor == ~0U) return 0; - /* - * page_mapping() does not accept slab pages. - */ - if (PageSlab(p)) - return -EINVAL; - mapping = page_mapping(p); if (mapping == NULL || mapping->host == NULL) return -EINVAL;