From: Jeff Layton <jlayton@redhat.com>
To: Eric Dumazet <dada1@cosmosbay.com>
Cc: Kirill Korotaev <dev@openvz.org>,
linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 3/3] have pipefs ensure i_ino uniqueness by calling iunique and hashing the inode
Date: Tue, 30 Jan 2007 10:04:08 -0500 [thread overview]
Message-ID: <45BF5E68.4070000@redhat.com> (raw)
In-Reply-To: <200701261612.52414.dada1@cosmosbay.com>
Eric Dumazet wrote:
>
> For dentry name, we certainly could use "[address of inode]" instead
> of "[inode number]" to get unicity, but do we care ?
>
> For st_ino values on pipefs and sockets, I doubt any user application would
> care. I never had to fstat() a socket fd. Of course it's a file descriptor,
> but all we really want to do with this kind of file descriptor is to call
> socket API.
>
> And for some heavy loaded internet servers , the additional cost of
> insert/delete a node in a machine shared tree could be a problem.
>
Granted, I've never had to stat a pipe fd either, so maybe in the big scheme
of things, it's not that important. Still, I think we can probably do this
without a great deal of added complexity or performance impact.
If changing the stuff between the brackets in the dentry name to something
besides inode number is OK, then we can defer the assignment of the inode
number until it's actually needed. For pipefs calls, this means we can only
assign an inode number when a stat call is actually done. So anyone who needs
that info can get it, and anyone who doesn't care about it shouldn't be
greatly impacted by it.
I'll be following up this email with a couple of patches for comment...
-- Jeff
next prev parent reply other threads:[~2007-01-30 15:05 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-29 19:11 [PATCH 3/3] have pipefs ensure i_ino uniqueness by calling iunique and hashing the inode Jeff Layton
2007-01-26 12:51 ` Kirill Korotaev
2007-01-26 14:42 ` Jeff Layton
2007-01-26 15:12 ` Eric Dumazet
2007-01-30 15:04 ` Jeff Layton [this message]
-- strict thread matches above, loose matches on Subject: below --
2007-01-08 20:47 Jeff Layton
2007-01-10 21:24 ` Christoph Hellwig
2007-01-16 18:57 Jeff Layton
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=45BF5E68.4070000@redhat.com \
--to=jlayton@redhat.com \
--cc=dada1@cosmosbay.com \
--cc=dev@openvz.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.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).