diff mbox series

[8/8] mm/memory-failure.c: remove unnecessary PageTransTail check

Message ID 20220210141733.1908-9-linmiaohe@huawei.com (mailing list archive)
State New
Headers show
Series mm/memory-failure.c: A few cleanup patches for memory failure | expand

Commit Message

Miaohe Lin Feb. 10, 2022, 2:17 p.m. UTC
When we reach here, we're guaranteed to have non-compound page as thp is
already splited. Remove this unnecessary PageTransTail check.

Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
---
 mm/memory-failure.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Naoya Horiguchi Feb. 14, 2022, 2:54 p.m. UTC | #1
On Thu, Feb 10, 2022 at 10:17:33PM +0800, Miaohe Lin wrote:
> When we reach here, we're guaranteed to have non-compound page as thp is
> already splited. Remove this unnecessary PageTransTail check.
> 
> Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>

Acked-by: Naoya Horiguchi <naoya.horiguchi@nec.com>
diff mbox series

Patch

diff --git a/mm/memory-failure.c b/mm/memory-failure.c
index 3d0803a13703..3e404b06efdc 100644
--- a/mm/memory-failure.c
+++ b/mm/memory-failure.c
@@ -1838,7 +1838,7 @@  int memory_failure(unsigned long pfn, int flags)
 	 * 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;
 
 	/*