All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wengang Wang <wen.gang.wang@oracle.com>
To: ocfs2-devel@oss.oracle.com
Subject: [Ocfs2-devel] Track negative dentries
Date: Mon, 8 Mar 2010 21:29:04 +0800	[thread overview]
Message-ID: <20100308132904.GA2936@laptop.oracle.com> (raw)

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.

                 reply	other threads:[~2010-03-08 13:29 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100308132904.GA2936@laptop.oracle.com \
    --to=wen.gang.wang@oracle.com \
    --cc=ocfs2-devel@oss.oracle.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.