Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 31 Oct 2002 11:24:42 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 31 Oct 2002 11:24:42 -0500 Received: from carisma.slowglass.com ([195.224.96.167]:8202 "EHLO phoenix.infradead.org") by vger.kernel.org with ESMTP id ; Thu, 31 Oct 2002 11:24:41 -0500 Date: Thu, 31 Oct 2002 16:31:04 +0000 From: Christoph Hellwig To: Nikita Danilov Cc: Linus Torvalds , Linux Kernel Mailing List , Reiserfs mail-list Subject: Re: [PATCH]: reiser4 [5/8] export remove_from_page_cache() Message-ID: <20021031163104.A9845@infradead.org> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <15809.22856.534975.384956@laputa.namesys.com>; from Nikita@Namesys.COM on Thu, Oct 31, 2002 at 07:24:40PM +0300 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1106 Lines: 23 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? > > Other file systems don't need remove_from_page_cache() because they only > store in the page cache data (and remove_from_page_cache() is called by > truncate()) and meta data that are never explicitly deleted (like > directory content in ext2). Sorry, but that's wrong. XFS does use the pagecache for all metadata and JFS for all but the superblock (which is never changed durin use) - 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/