Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756124Ab3EQUpI (ORCPT ); Fri, 17 May 2013 16:45:08 -0400 Received: from zene.cmpxchg.org ([85.214.230.12]:45198 "EHLO zene.cmpxchg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753170Ab3EQUpF (ORCPT ); Fri, 17 May 2013 16:45:05 -0400 Date: Fri, 17 May 2013 16:44:52 -0400 From: Johannes Weiner To: Mel Gorman Cc: Alexey Lyahkov , Andrew Perepechko , Robin Dong , Theodore Tso , Andrew Morton , Hugh Dickins , Rik van Riel , Bernd Schubert , David Howells , Trond Myklebust , Linux-fsdevel , Linux-ext4 , LKML , Linux-mm Subject: Re: [PATCH 4/5] mm: Remove lru parameter from __pagevec_lru_add and remove parts of pagevec API Message-ID: <20130517204452.GC15721@cmpxchg.org> References: <1368784087-956-1-git-send-email-mgorman@suse.de> <1368784087-956-5-git-send-email-mgorman@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1368784087-956-5-git-send-email-mgorman@suse.de> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1451 Lines: 30 On Fri, May 17, 2013 at 10:48:06AM +0100, Mel Gorman wrote: > Now that the LRU to add a page to is decided at LRU-add time, remove the > misleading lru parameter from __pagevec_lru_add. A consequence of this is > that the pagevec_lru_add_file, pagevec_lru_add_anon and similar helpers > are misleading as the caller no longer has direct control over what LRU > the page is added to. Unused helpers are removed by this patch and existing > users of pagevec_lru_add_file() are converted to use lru_cache_add_file() > directly and use the per-cpu pagevecs instead of creating their own pagevec. > > Signed-off-by: Mel Gorman > Reviewed-by: Jan Kara > Reviewed-by: Rik van Riel > @@ -452,8 +448,7 @@ int cachefiles_read_or_alloc_page(struct fscache_retrieval *op, > if (block) { > /* submit the apparently valid page to the backing fs to be > * read from disk */ > - ret = cachefiles_read_backing_file_one(object, op, page, > - &pagevec); > + ret = cachefiles_read_backing_file_one(object, op, page); Also remove the declaration and pagevec_init a few lines up? Minor detail, though. Acked-by: Johannes Weiner -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/