From: mandeepsandhu.chd@gmail.com (Mandeep Sandhu)
To: kernelnewbies@lists.kernelnewbies.org
Subject: What is negative lookup in linux filesystem
Date: Mon, 5 Oct 2015 10:03:25 -0700 [thread overview]
Message-ID: <CAC+QLdSVPvQeSXVyLukBpuRvSp_XxdbTfdYUW2eU-_3YvHGojQ@mail.gmail.com> (raw)
In-Reply-To: <CABcWhv6BOh5usTA=US2TMdE95iQCPdSdxCs_4bGhSPdhws-1vw@mail.gmail.com>
>From the context of the snippet you posted, it looks like the author
implies a "failed lookup" when s/he writes "negative lookup".
CMIIW.
-mandeep
On Mon, Oct 5, 2015 at 8:08 AM, Praveen Kumar <kpraveen.lkml@gmail.com> wrote:
> Hi,
>
> I am trying to understand the path-lookup in linux filesystem and was going
> through https://www.kernel.org/doc/Documentation/filesystems/path-lookup.txt
>
> Under 'Rename' heading, I came across the negative lookup terminology,
> snapshot below
>
> 'Between deleting the dentry from the old hash list, and inserting it on the
> new
> hash list, a lookup may find neither 'A' nor 'B' matching the dentry. The
> same
> rename seqlock is also used to cover this race in much the same way, by
> retrying a negative lookup result if a rename was in progress.'
>
> Can anyone please help understanding the negative lookup concept and how do
> we achieve it. Thanks in advance.
>
> Regards,
>
> ~Praveen.
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
prev parent reply other threads:[~2015-10-05 17:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-05 15:08 What is negative lookup in linux filesystem Praveen Kumar
2015-10-05 17:03 ` Mandeep Sandhu [this message]
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=CAC+QLdSVPvQeSXVyLukBpuRvSp_XxdbTfdYUW2eU-_3YvHGojQ@mail.gmail.com \
--to=mandeepsandhu.chd@gmail.com \
--cc=kernelnewbies@lists.kernelnewbies.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).