Question about dentry cache in VFS

From: Martin Peck
Date: Tue Apr 13 2004 - 12:32:08 EST


I am working on a userspace filesystem and would like
the ability to selectively decache inodes and their children
from the VFS.

I can do this on a global scale using invalidate_inodes() and
shrink_dcache_sb(), however, I would also like to be able
to decache for specific inodes/entries.

One possibility (and perhaps the 'right' way) to do this which
I had considered is using dentry_operations to trap d_revalidate
as needed, however, I would like to avoid an invocation here
for every dentry if there is another way to selectively decache.

Thanks in advance,
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/