Skip to contentSkip to conversation

mm-use-vma_pages-helper.patch removed from -mm tree

merged [email protected] 1 participant 1 message Feb 1, 2018

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: mm/interval_tree.c: use vma_pages() helper
has been removed from the -mm tree. Its filename was
mm-use-vma_pages-helper.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Vasyl Gomonovych <[email protected]>
Subject: mm/interval_tree.c: use vma_pages() helper

Use vma_pages function on vma object instead of explicit computation. mm/interval_tree.c:21:27-33: WARNING: Consider using vma_pages helper Generated by: scripts/coccinelle/api/vma_pages.cocci

---

 mm/interval_tree.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/interval_tree.c renamed from mm/interval_tree.c~mm-use-vma_pages-helper +1 -1
diff -puN mm/interval_tree.c~mm-use-vma_pages-helper mm/interval_tree.c
@@ -18,7 +18,7 @@ static inline unsigned long vma_start_pg
 
 static inline unsigned long vma_last_pgoff(struct vm_area_struct *v)
 {
-	return v->vm_pgoff + ((v->vm_end - v->vm_start) >> PAGE_SHIFT) - 1;
+	return v->vm_pgoff + vma_pages(v) - 1;
 }
 
 INTERVAL_TREE_DEFINE(struct vm_area_struct, shared.rb,

_

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