Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 2 Sep 2002 23:53:16 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 2 Sep 2002 23:53:15 -0400 Received: from RAVEL.CODA.CS.CMU.EDU ([128.2.222.215]:9654 "EHLO ravel.coda.cs.cmu.edu") by vger.kernel.org with ESMTP id ; Mon, 2 Sep 2002 23:53:15 -0400 Date: Mon, 2 Sep 2002 23:57:46 -0400 To: Anton Altaparmakov Cc: linux-kernel@vger.kernel.org Subject: Re: [BK-PATCH-2.5] Introduce new VFS inode cache lookup function Message-ID: <20020903035745.GG29452@ravel.coda.cs.cmu.edu> Mail-Followup-To: Anton Altaparmakov , linux-kernel@vger.kernel.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i From: Jan Harkes Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 982 Lines: 27 On Sat, Aug 31, 2002 at 07:00:04PM +0100, Anton Altaparmakov wrote: > Without such icache lookup functionality it is impossible to write inodes > via the VM page dirty code paths AFAICS. - The only alternative I can see > is to duplicate the whole icache private to NTFS so that I can perform the > lookup internally but I think that is silly considering the VFS already > keeps the inode cache... Wouldn't you be able to use something like the following code to do ilookup? Jan static int dont_set(struct inode *inode, void *data) { return -1; } struct inode *ilookup(struct super_block *sb, struct list_head *head, int (*test)(struct inode *, void *), void *data) { return iget5_locked(sb, head, test, dont_set, data); } - 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/