Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 12 Sep 2002 19:19:00 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 12 Sep 2002 19:19:00 -0400 Received: from 2-028.ctame701-1.telepar.net.br ([200.193.160.28]:17286 "EHLO 2-028.ctame701-1.telepar.net.br") by vger.kernel.org with ESMTP id ; Thu, 12 Sep 2002 19:19:00 -0400 Date: Thu, 12 Sep 2002 20:23:38 -0300 (BRT) From: Rik van Riel X-X-Sender: riel@imladris.surriel.com To: Andrew Morton cc: Urban Widmark , Chuck Lever , Daniel Phillips , , Linux Kernel Mailing List Subject: Re: invalidate_inode_pages in 2.5.32/3 In-Reply-To: <3D811A6C.C73FEC37@digeo.com> 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: 945 Lines: 29 On Thu, 12 Sep 2002, Andrew Morton wrote: > Rik van Riel wrote: > > invalidate_page(struct page * page) { > That's the bottom-up approach. The top-down (vmtruncate) approach > would also work, if the locking is suitable. The top-down approach will almost certainly be most efficient when invalidating a large chunk of a file (truncate, large file locks) while the bottom-up approach is probably more efficient when the system invalidates very few pages (small file lock, cluster file system mmap() support). regards, Rik -- Bravely reimplemented by the knights who say "NIH". http://www.surriel.com/ http://distro.conectiva.com/ Spamtraps of the month: september@surriel.com trac@trac.org - 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/