All of lore.kernel.org
 help / color / mirror / Atom feed
* [merged mm-stable] mm-remove-redundant-condition-for-thp-folio.patch removed from -mm tree
@ 2024-11-06  1:00 Andrew Morton
  0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2024-11-06  1:00 UTC (permalink / raw)
  To: mm-commits, ziy, ying.huang, willy, david, anshuman.khandual,
	dev.jain, akpm


The quilt patch titled
     Subject: mm: remove redundant condition for THP folio
has been removed from the -mm tree.  Its filename was
     mm-remove-redundant-condition-for-thp-folio.patch

This patch was dropped because it was merged into the mm-stable branch
of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Dev Jain <dev.jain@arm.com>
Subject: mm: remove redundant condition for THP folio
Date: Fri, 18 Oct 2024 15:11:51 +0530

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 |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/mm/migrate.c~mm-remove-redundant-condition-for-thp-folio
+++ a/mm/migrate.c
@@ -1733,7 +1733,7 @@ static int migrate_pages_batch(struct li
 
 		list_for_each_entry_safe(folio, folio2, from, lru) {
 			is_large = folio_test_large(folio);
-			is_thp = is_large && folio_test_pmd_mappable(folio);
+			is_thp = folio_test_pmd_mappable(folio);
 			nr_pages = folio_nr_pages(folio);
 
 			cond_resched();
_

Patches currently in -mm which might be from dev.jain@arm.com are



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-11-06  1:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-06  1:00 [merged mm-stable] mm-remove-redundant-condition-for-thp-folio.patch removed from -mm tree Andrew Morton

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.