From: "J. Bruce Fields" <bfields@fieldses.org>
To: Sage Weil <sage@inktank.com>
Cc: ceph-devel@vger.kernel.org
Subject: Re: [PATCH] ceph: trivial comment fix
Date: Thu, 16 Jan 2014 21:01:19 -0500 [thread overview]
Message-ID: <20140117020119.GC20521@fieldses.org> (raw)
In-Reply-To: <alpine.DEB.2.00.1401161603250.16743@cobra.newdream.net>
On Thu, Jan 16, 2014 at 04:03:38PM -0800, Sage Weil wrote:
> On Thu, 16 Jan 2014, J. Bruce Fields wrote:
> > From: "J. Bruce Fields" <bfields@redhat.com>
> >
> > "disconnected" is too easily confused with "DCACHE_DISCONNECTED". I
> > think "unhashed" is the more precise term here.
>
> Good point. Applied, thanks!
Thanks! While I'm looking, there's another d_find_alias() caller in
build_inode_path. What's that? (Do the mds protocol messages actually
use full paths?) And will this break if you get a DCACHE_DISCONNECTED
or an unhashed alias?
--b.
> sage
>
>
> >
> > Signed-off-by: J. Bruce Fields <bfields@redhat.com>
> > ---
> > fs/ceph/caps.c | 6 +++---
> > 1 file changed, 3 insertions(+), 3 deletions(-)
> >
> > Just ran across this while wondering what d_find_alias callers do....
> >
> > diff --git a/fs/ceph/caps.c b/fs/ceph/caps.c
> > index 3c0a4bd..697f9d7 100644
> > --- a/fs/ceph/caps.c
> > +++ b/fs/ceph/caps.c
> > @@ -2350,11 +2350,11 @@ static void invalidate_aliases(struct inode *inode)
> > d_prune_aliases(inode);
> > /*
> > * For non-directory inode, d_find_alias() only returns
> > - * connected dentry. After calling d_invalidate(), the
> > - * dentry become disconnected.
> > + * hashed dentry. After calling d_invalidate(), the
> > + * dentry becomes unhashed.
> > *
> > * For directory inode, d_find_alias() can return
> > - * disconnected dentry. But directory inode should have
> > + * unhashed dentry. But directory inode should have
> > * one alias at most.
> > */
> > while ((dn = d_find_alias(inode))) {
> > --
> > 1.7.9.5
> >
> >
next prev parent reply other threads:[~2014-01-17 2:01 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-16 22:42 [PATCH] ceph: trivial comment fix J. Bruce Fields
2014-01-17 0:03 ` Sage Weil
2014-01-17 2:01 ` J. Bruce Fields [this message]
2014-01-18 4:33 ` Sage Weil
2014-01-22 18:23 ` J. Bruce Fields
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=20140117020119.GC20521@fieldses.org \
--to=bfields@fieldses.org \
--cc=ceph-devel@vger.kernel.org \
--cc=sage@inktank.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.