lkml.org 
[lkml]   [2002]   [Sep]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [BK-PATCH-2.5] Introduce new VFS inode cache lookup function
From
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/

\
 
 \ /
  Last update: 2005-03-22 13:28    [W:0.110 / U:1.576 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site