All of lore.kernel.org
 help / color / mirror / Atom feed
* [Ocfs2-devel] Track negative dentries
@ 2010-03-08 13:29 Wengang Wang
  0 siblings, 0 replies; only message in thread
From: Wengang Wang @ 2010-03-08 13:29 UTC (permalink / raw)
  To: ocfs2-devel

Hi Sunil/Joel,

For the small task "Track negative dentries", I have a question that where do
we put the compare of inode lock generations?
During the path walking, I think in only ocfs2_dentry_revalidate() and
ocfs2_lookup() we have the chance to do the compare. For d_revalidate(), we have
to return "not valid" if the dentry is a negative one. So we can only do it in
lookup(). But if d_revalidate() returns "not valid", the dentry will be unhashed
from dentry cache before lookup(). And then for next path walking, the dentry
won't be found in cache and the generation info is also lost(A new dentry object
is created then..).

So how does it work?

regards,
wengang.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-03-08 13:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-08 13:29 [Ocfs2-devel] Track negative dentries Wengang Wang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.