mm: remove redundant condition for THP folio
authorDev Jain <dev.jain@arm.com>
Fri, 18 Oct 2024 09:41:51 +0000 (15:11 +0530)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 7 Nov 2024 04:11:16 +0000 (20:11 -0800)
commit5bb6345cd2edfceef1749950ce786f205e56a90b
treeb18a76b0fa13c873e808fc7aaf8c49e5a914aba6
parent4b6b0a5188c219cf40d6e863e55e2a5ca39e51cd
mm: remove redundant condition for THP folio

folio_test_pmd_mappable() implies folio_test_large(), therefore, simplify
the expression for is_thp.

Link: https://lkml.kernel.org/r/20241018094151.3458-1-dev.jain@arm.com
Signed-off-by: Dev Jain <dev.jain@arm.com>
Reviewed-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Acked-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Zi Yan <ziy@nvidia.com>
Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com>
Cc: "Huang, Ying" <ying.huang@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/migrate.c