Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754969Ab1EAPKP (ORCPT ); Sun, 1 May 2011 11:10:15 -0400 Received: from mail-qy0-f174.google.com ([209.85.216.174]:52679 "EHLO mail-qy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752823Ab1EAPKN convert rfc822-to-8bit (ORCPT ); Sun, 1 May 2011 11:10:13 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=egIqAj0BZwr7/4a8OMssyBT/xON8zCwDAeCY+/xLRieJI08HHuY5vCLdUS3GDGSiF8 HEVaB7cX8nPsFecW27exZ5zM7ew4DS0PyJ698R7SRTts3+5lrR2fC/waNdk7gBjeTX7o y1o3bB7OX4Qas4EtzgBnnMBk4UJ6Mo4gBDyiE= MIME-Version: 1.0 In-Reply-To: <20110501221459.75E4.A69D9226@jp.fujitsu.com> References: <20110428084500.GG12437@cmpxchg.org> <20110501221459.75E4.A69D9226@jp.fujitsu.com> Date: Mon, 2 May 2011 00:10:12 +0900 Message-ID: Subject: Re: [RFC 4/8] Make clear description of putback_lru_page From: Minchan Kim To: KOSAKI Motohiro Cc: Johannes Weiner , KAMEZAWA Hiroyuki , Andrew Morton , linux-mm , LKML , Christoph Lameter , Johannes Weiner , Mel Gorman , Rik van Riel , Andrea Arcangeli Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1877 Lines: 55 On Sun, May 1, 2011 at 10:13 PM, KOSAKI Motohiro wrote: >> On Thu, Apr 28, 2011 at 08:20:32AM +0900, Minchan Kim wrote: >> > On Wed, Apr 27, 2011 at 5:11 PM, KAMEZAWA Hiroyuki >> > wrote: >> > > On Wed, 27 Apr 2011 01:25:21 +0900 >> > > Minchan Kim wrote: >> > > >> > >> Commonly, putback_lru_page is used with isolated_lru_page. >> > >> The isolated_lru_page picks the page in middle of LRU and >> > >> putback_lru_page insert the lru in head of LRU. >> > >> It means it could make LRU churning so we have to be very careful. >> > >> Let's clear description of putback_lru_page. >> > >> >> > >> Cc: KOSAKI Motohiro >> > >> Cc: Mel Gorman >> > >> Cc: Rik van Riel >> > >> Cc: Andrea Arcangeli >> > >> Signed-off-by: Minchan Kim >> > > >> > > seems good... >> > > Reviewed-by: KAMEZAWA Hiroyuki >> > > >> > > But is there consensus which side of LRU is tail? head? >> > >> > I don't know. I used to think it's head. >> > If other guys raise a concern as well, let's talk about it. :) >> > Thanks >> >> I suppose we add new pages to the head of the LRU and reclaim old >> pages from the tail. >> >> Acked-by: Johannes Weiner > > So, It would be better if isolate_lru_page() also have "LRU tail blah blah blah" > comments. Okay. I will try it. > > anyway, >        Reviewed-by: KOSAKI Motohiro > Thanks. -- Kind regards, Minchan Kim -- 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/