Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 31 Oct 2002 12:29:55 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 31 Oct 2002 12:29:55 -0500 Received: from h68-147-110-38.cg.shawcable.net ([68.147.110.38]:42489 "EHLO webber.adilger.int") by vger.kernel.org with ESMTP id ; Thu, 31 Oct 2002 12:29:54 -0500 From: Andreas Dilger Date: Thu, 31 Oct 2002 10:33:11 -0700 To: Christoph Hellwig , Nikita Danilov , Linus Torvalds , Linux Kernel Mailing List , Reiserfs mail-list Subject: Re: [PATCH]: reiser4 [5/8] export remove_from_page_cache() Message-ID: <20021031173311.GA23959@clusterfs.com> Mail-Followup-To: Christoph Hellwig , Nikita Danilov , Linus Torvalds , Linux Kernel Mailing List , Reiserfs mail-list References: <15809.21559.295852.205720@laputa.namesys.com> <20021031161826.A9747@infradead.org> <15809.22856.534975.384956@laputa.namesys.com> <20021031163104.A9845@infradead.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021031163104.A9845@infradead.org> User-Agent: Mutt/1.4i X-GPG-Key: 1024D/0D35BED6 X-GPG-Fingerprint: 7A37 5D79 BF1B CECA D44F 8A29 A488 39F5 0D35 BED6 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1319 Lines: 30 On Oct 31, 2002 16:31 +0000, Christoph Hellwig wrote: > On Thu, Oct 31, 2002 at 07:24:40PM +0300, Nikita Danilov wrote: > > Reiser4 stores meta-data in a huge balanced tree. This tree is kept > > (partially) in the page cache. All pages in this tree are attached to > > "fake" inode. Sometimes you need to remove node from the tree. At this > > moment page has to be removed from the fake inode mapping. > > What about chaing truncate_inode_pages to take an additional len > argument so you don't have to remove all pages past an offset? That would be what we have been calling "punch", and is quite useful for putting holes in files (i.e. making them sparse again). This can be used for InterMezzo (among other things) so that the KML log file can be growing at the end, but being punched out at the start so it doesn't use up a lot of disk space. Not that I'm holding my breath on getting this in the kernel, but it is definitely useful. Cheers, Andreas -- Andreas Dilger http://www-mddsp.enel.ucalgary.ca/People/adilger/ http://sourceforge.net/projects/ext2resize/ - 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/