From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Thu, 15 Feb 2007 07:19:49 -0800 (PST) From: Christoph Lameter Subject: Re: [PATCH 4/7] Logic to move mlocked pages In-Reply-To: <20070214213321.0633d570.akpm@linux-foundation.org> Message-ID: References: <20070215012449.5343.22942.sendpatchset@schroedinger.engr.sgi.com> <20070215012510.5343.52706.sendpatchset@schroedinger.engr.sgi.com> <20070214213321.0633d570.akpm@linux-foundation.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org Return-Path: To: Andrew Morton Cc: Christoph Hellwig , Arjan van de Ven , Nigel Cunningham , "Martin J. Bligh" , Peter Zijlstra , Nick Piggin , linux-mm@kvack.org, Matt Mackall , Rik van Riel , KAMEZAWA Hiroyuki List-ID: On Wed, 14 Feb 2007, Andrew Morton wrote: > > list_add_tail(&page->lru, pagelist); > > + } else > > + if (PageMlocked(page)) { > > + ret = 0; > > + get_page(page); > > + ClearPageMlocked(page); > > + list_add_tail(&page->lru, pagelist); > > + __dec_zone_state(zone, NR_MLOCK); > > } > > spin_unlock_irq(&zone->lru_lock); > > argh. Please change your scripts to use `diff -p'. Ok. That machine did not have it. Sigh. > Why does whatever-funtion-this-is do the get_page() there? Looks odd. The refcount has to be elevated the same way as for regular LRU pages. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org