[OpenAFS-devel] funny lookup/dnlc/dcache/...

chas williams - CONTRACTOR chas@cmf.nrl.navy.mil
Wed, 20 Apr 2005 14:45:11 -0400


In message <20050420021132.GA13254@bismuth.club.cc.cmu.edu>,"John S. Bucy" writ
>I understand now ... the vfs is doing 
>d_op->d_revalidate = afs_linux_revalidate_dentry(), it falls through the
>dnlc and does an afs_lookup().  It seems like the revalidate routine
>should be able to know whether or not the dir vnode has changed since
>the dentry was last validated and only do the lookup in that case.

and in afs_lookup() it does another osi_dnlc_lookup() which will fail
again.  so when you are going to miss the dnlc cache, you will miss
it twice.  i dont remember, why does revalidate look in the dnlc?

> right now that might be used to track, say, the data version of the
> dir vnode.

sounds like a good idea.