All of lore.kernel.org
 help / color / mirror / Atom feed
* [merged] gfs2-use-pagevec_lookup_range_tag.patch removed from -mm tree
@ 2017-11-16 20:01 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2017-11-16 20:01 UTC (permalink / raw)
  To: daniel.m.jordan, jack, mm-commits, rpeterso


The patch titled
     Subject: gfs2: use pagevec_lookup_range_tag()
has been removed from the -mm tree.  Its filename was
     gfs2-use-pagevec_lookup_range_tag.patch

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

------------------------------------------------------
From: Jan Kara <jack@suse.cz>
Subject: gfs2: use pagevec_lookup_range_tag()

We want only pages from given range in gfs2_write_cache_jdata().  Use
pagevec_lookup_range_tag() instead of pagevec_lookup_tag() and remove
unnecessary code.

Link: http://lkml.kernel.org/r/20171009151359.31984-9-jack@suse.cz
Signed-off-by: Jan Kara <jack@suse.cz>
Reviewed-by: Daniel Jordan <daniel.m.jordan@oracle.com>
Cc: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 fs/gfs2/aops.c |   20 ++------------------
 1 file changed, 2 insertions(+), 18 deletions(-)

diff -puN fs/gfs2/aops.c~gfs2-use-pagevec_lookup_range_tag fs/gfs2/aops.c
--- a/fs/gfs2/aops.c~gfs2-use-pagevec_lookup_range_tag
+++ a/fs/gfs2/aops.c
@@ -280,22 +280,6 @@ static int gfs2_write_jdata_pagevec(stru
 	for(i = 0; i < nr_pages; i++) {
 		struct page *page = pvec->pages[i];
 
-		/*
-		 * At this point, the page may be truncated or
-		 * invalidated (changing page->mapping to NULL), or
-		 * even swizzled back from swapper_space to tmpfs file
-		 * mapping. However, page->index will not change
-		 * because we have a reference on the page.
-		 */
-		if (page->index > end) {
-			/*
-			 * can't be range_cyclic (1st pass) because
-			 * end == -1 in that case.
-			 */
-			ret = 1;
-			break;
-		}

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-11-16 20:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-16 20:01 [merged] gfs2-use-pagevec_lookup_range_tag.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.