Skip to contentSkip to conversation

mm-use-vma_pages-for-vma-objects.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Dec 12, 2023

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: mm: use vma_pages() for vma objects
has been removed from the -mm tree. Its filename was
mm-use-vma_pages-for-vma-objects.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: Chen Haonan <[email protected]>
Subject: mm: use vma_pages() for vma objects
Date: Wed, 6 Dec 2023 18:36:27 +0800

vma_pages() is more readable and also better at avoiding error codes, so use vma_pages() instead of direct operations on vma

---

 mm/internal.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/internal.h renamed from mm/internal.h~mm-use-vma_pages-for-vma-objects +1 -1
@@ -616,7 +616,7 @@ folio_within_range(struct folio *folio,
 		unsigned long start, unsigned long end)
 {
 	pgoff_t pgoff, addr;
-	unsigned long vma_pglen = (vma->vm_end - vma->vm_start) >> PAGE_SHIFT;
+	unsigned long vma_pglen = vma_pages(vma);
 
 	VM_WARN_ON_FOLIO(folio_test_ksm(folio), folio);
 	if (start > end)

_

Patches currently in -mm which might be from [email protected] are