* [merged] mm-use-vma_pages-helper.patch removed from -mm tree
@ 2018-02-01 19:31 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2018-02-01 19:31 UTC (permalink / raw)
To: dbueso, gomonovych, mm-commits, mst
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 <gomonovych@gmail.com>
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
Link: http://lkml.kernel.org/r/1511364410-13499-1-git-send-email-gomonovych@gmail.com
Signed-off-by: Vasyl Gomonovych <gomonovych@gmail.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Davidlohr Bueso <dbueso@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
mm/interval_tree.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff -puN mm/interval_tree.c~mm-use-vma_pages-helper mm/interval_tree.c
--- a/mm/interval_tree.c~mm-use-vma_pages-helper
+++ a/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 gomonovych@gmail.com are
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-02-01 19:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-01 19:31 [merged] mm-use-vma_pages-helper.patch removed from -mm tree akpm
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.