From: Jeremy Kerr <jk@ozlabs.org>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Eric Paris <eparis@redhat.com>, Al Viro <viro@zeniv.linux.org.uk>,
Stephen Rothwell <sfr@canb.auug.org.au>,
Benjamin Herrenschmidt <benh@kernel.crashing.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [GIT PULL] notification tree - fsnotify assumes incorrectly positive parent dentry
Date: Tue, 30 Jun 2009 08:46:29 +0800 [thread overview]
Message-ID: <200906300846.30625.jk@ozlabs.org> (raw)
In-Reply-To: <alpine.LFD.2.01.0906291305030.3605@localhost.localdomain>
Linus,
> Hmm. It does sound like a reasonable assumption, though. Maybe spufs
> should be fixed to have an inode for all directories?
We have inodes for all directories, it's just the order which we set
things up. When a new 'spu context' (ie, a directory with a bunch of
files) is created, we add the parent dentry, populate it with files
(positive dentries), then instantiate the parent.
There's no specific need to do it in this order, it just makes the code
a little simpler - we just 'stitch the parent in' once everything else
has completed successfully, so less stuff to do in the error path.
> A NULL d_inode means that something is a negative dentry, and a
> negative dentry shouldn't have children.
OK. If this is a general invariant, then I'll get a change to spufs
going to do the setup in the right order.
Cheers,
Jeremy
next prev parent reply other threads:[~2009-06-30 0:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-29 20:01 Eric Paris
2009-06-29 20:09 ` Linus Torvalds
2009-06-30 0:46 ` Jeremy Kerr [this message]
2009-06-30 1:02 ` Linus Torvalds
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=200906300846.30625.jk@ozlabs.org \
--to=jk@ozlabs.org \
--cc=benh@kernel.crashing.org \
--cc=eparis@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=sfr@canb.auug.org.au \
--cc=torvalds@linux-foundation.org \
--cc=viro@zeniv.linux.org.uk \
/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
all inboxes | Powered by JetHome®