linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Al Viro <viro@ZenIV.linux.org.uk>
To: "Drokin, Oleg" <oleg.drokin@intel.com>
Cc: "Hammond, John" <john.hammond@intel.com>,
	"linux-fsdevel@vger.kernel.org" <linux-fsdevel@vger.kernel.org>,
	"Dilger, Andreas" <andreas.dilger@intel.com>
Subject: Re: [RFC] lustre treatment of dentry->d_name
Date: Tue, 21 Oct 2014 22:17:10 +0100	[thread overview]
Message-ID: <20141021211710.GV7996@ZenIV.linux.org.uk> (raw)
In-Reply-To: <01AC4DD5-3DA1-4C98-BED3-B009AAF8C951@intel.com>

On Tue, Oct 21, 2014 at 01:34:57PM +0000, Drokin, Oleg wrote:

> I think it makes sense indeed.
> The "get rid of duplicate mountpoint checks" patch has a hunk at ll_link
> that looks like it belongs to "kill ll_link_generic()" patch,
> otherwise the intermediate result is somewhat strange.

Thanks; fixed and force-pushed.

> > Another question: what's wrong with d_splice_alias() or d_materialise_unique()?
> > I.e. why do we need ll_splice_alias()?  I have patches in local queue
> 
> We used to need it to also find and reuse invalid aliases, so that the dentry
> cache does not get out of control with constant dentry invalidations we have.
> 
> I checked the code and now that d_splice_alias is calling __d_find_any_alias
> that seems to just pick the first alias off the list, we should be fine

ITYM "the one and only".  That's pretty much what d_splice_alias() is about -
we do not allow more than one dentry (be it hashed or not) for a directory
inode, so d_add() variant that can run into directory inode already with a
dentry _must_ use that existing dentry instead of what it's been given.
That's why we need it to be able to move a preexisting dentry in place of
the one it's been given and return a new reference to that preexisting
dentry.  For non-directories and for directories that have no aliases it's
just d_add() and return NULL.

> with just using generic d_splice_alias.

BTW, mind if we kill ll_umode_t?  This kind of compat wrappers is the wrong
way - it should be "supply an equivalent of more recent kernel stuff when
builds on older kernels".

  reply	other threads:[~2014-10-21 21:17 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-21  1:13 [RFC] lustre treatment of dentry->d_name Al Viro
2014-10-21  2:55 ` Al Viro
2014-10-21  3:55   ` Drokin, Oleg
2014-10-21  3:46 ` Drokin, Oleg
2014-10-21  4:02   ` Al Viro
2014-10-21 13:34     ` Drokin, Oleg
2014-10-21 21:17       ` Al Viro [this message]
2014-10-22  1:48         ` Drokin, Oleg
2014-10-22  2:50           ` Al Viro
2014-10-22  9:30             ` Drokin, Oleg
2014-10-21 19:30     ` Al Viro
2014-10-22  1:49       ` Drokin, Oleg
2014-10-21 20:07   ` Al Viro
2014-10-22  1:53     ` Drokin, Oleg

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=20141021211710.GV7996@ZenIV.linux.org.uk \
    --to=viro@zeniv.linux.org.uk \
    --cc=andreas.dilger@intel.com \
    --cc=john.hammond@intel.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=oleg.drokin@intel.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 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).