Linux MM tree latest commits
 help / color / mirror / Atom feed
From: akpm@linux-foundation.org
To: dbueso@suse.de, gomonovych@gmail.com, mm-commits@vger.kernel.org,
	mst@redhat.com
Subject: [merged] mm-use-vma_pages-helper.patch removed from -mm tree
Date: Thu, 01 Feb 2018 11:31:26 -0800	[thread overview]
Message-ID: <20180201193126.NHKCa_CK5%akpm@linux-foundation.org> (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 <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



                 reply	other threads:[~2018-02-01 19:31 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180201193126.NHKCa_CK5%akpm@linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=dbueso@suse.de \
    --cc=gomonovych@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mm-commits@vger.kernel.org \
    --cc=mst@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox