From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755328AbcDAW5u (ORCPT ); Fri, 1 Apr 2016 18:57:50 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:55126 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754372AbcDAW5s (ORCPT ); Fri, 1 Apr 2016 18:57:48 -0400 Date: Fri, 1 Apr 2016 15:57:47 -0700 From: Andrew Morton To: Kent Overstreet Cc: Al Viro , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH 2/2] mm: Real pagecache iterators Message-Id: <20160401155747.249e0f8ed89e00fbb24111d2@linux-foundation.org> In-Reply-To: <1459478291-29982-2-git-send-email-kent.overstreet@gmail.com> References: <20160401023510.GA28762@kmo-pixel> <1459478291-29982-1-git-send-email-kent.overstreet@gmail.com> <1459478291-29982-2-git-send-email-kent.overstreet@gmail.com> X-Mailer: Sylpheed 3.4.1 (GTK+ 2.24.23; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 31 Mar 2016 18:38:11 -0800 Kent Overstreet wrote: > Introduce for_each_pagecache_page() and related macros, with the goal of > replacing most/all uses of pagevec_lookup(). > > For the most part this shouldn't be a functional change. The one functional > difference with the new macros is that they now take an @end parameter, so we're > able to avoid grabbing pages in __find_get_pages() that we'll never use. > > This patch only does some of the conversions, the ones I was able to easily test > myself - the conversions are mechanical but tricky enough they generally warrent > testing. What is the reason for this change?