The patch titled Subject: mm/interval_tree.c: use vma_pages() helper has been added to the -mm tree. Its filename is mm-use-vma_pages-helper.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/mm-use-vma_pages-helper.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/mm-use-vma_pages-helper.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Vasyl Gomonovych <gomonovych@xxxxxxxxx> 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@xxxxxxxxx Signed-off-by: Vasyl Gomonovych <gomonovych@xxxxxxxxx> Acked-by: Michael S. Tsirkin <mst@xxxxxxxxxx> Acked-by: Davidlohr Bueso <dbueso@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- 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@xxxxxxxxx are mm-page_owner-use-ptr_err_or_zero.patch mm-use-vma_pages-helper.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html