From: Miaohe Lin Date: Tue, 22 Mar 2022 21:44:33 +0000 (-0700) Subject: mm/memory-failure.c: remove unnecessary PageTransTail check X-Git-Tag: v5.18-rc1~168^2~108 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b04d3eebebf8372f83924db6c1e4fbdcab7cafc2;p=thirdparty%2Flinux.git mm/memory-failure.c: remove unnecessary PageTransTail check When we reach here, we're guaranteed to have non-compound page as thp is already splited. Remove this unnecessary PageTransTail check. Link: https://lkml.kernel.org/r/20220218090118.1105-9-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 e997bfd8a8409..80fc9dca4d21c 100644 --- a/mm/memory-failure.c +++ b/mm/memory-failure.c @@ -1844,7 +1844,7 @@ try_again: * page_lock. We need wait writeback completion for this page or it * may trigger vfs BUG while evict inode. */ - if (!PageTransTail(p) && !PageLRU(p) && !PageWriteback(p)) + if (!PageLRU(p) && !PageWriteback(p)) goto identify_page_state; /*