Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sat, 20 Jul 2002 16:38:58 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sat, 20 Jul 2002 16:38:58 -0400 Received: from garrincha.netbank.com.br ([200.203.199.88]:3849 "HELO garrincha.netbank.com.br") by vger.kernel.org with SMTP id ; Sat, 20 Jul 2002 16:38:56 -0400 Date: Sat, 20 Jul 2002 17:41:39 -0300 (BRT) From: Rik van Riel X-X-Sender: riel@imladris.surriel.com To: Linus Torvalds cc: Andrew Morton , , , Ed Tomlinson Subject: Re: [PATCH][1/2] return values shrink_dcache_memory etc In-Reply-To: Message-ID: X-spambait: aardvark@kernelnewbies.org X-spammeplease: aardvark@nl.linux.org MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1042 Lines: 30 On Sat, 20 Jul 2002, Linus Torvalds wrote: > On Sat, 20 Jul 2002, Rik van Riel wrote: > > > > this patch, against current 2.5.27, builds on the patch that let > > kmem_cache_shrink return the number of pages freed. This value > > is used as the return value for shrink_dcache_memory and friends. > I'd be much more interested in the "put the cache pages on the dirty list, > and have memory pressure push them out in LRU order" approach. Somebody > already had preliminary patches. > > That gets _rid_ of dcache_shrink() and friends, instead of making them > return meaningless numbers. OK, I'll try to forward-port Ed's code to do that from 2.4 to 2.5 this weekend... regards, Rik -- Bravely reimplemented by the knights who say "NIH". http://www.surriel.com/ http://distro.conectiva.com/ - 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/