All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ted Ts'o <tytso@mit.edu>
To: Rajat Sharma <fs.rajat@gmail.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>, linux-fsdevel@vger.kernel.org
Subject: Re: Why do we pass in a directory and a dentry to lookup() and rename()
Date: Mon, 27 Dec 2010 00:50:01 -0500	[thread overview]
Message-ID: <20101227055001.GA10149@thunk.org> (raw)
In-Reply-To: <AANLkTikS1BMu+DyZEVZ9H6daoh5dJM7uGPUB9ugdHuRA@mail.gmail.com>

On Mon, Dec 27, 2010 at 11:14:05AM +0530, Rajat Sharma wrote:
> Hi Theodore,
> 
> In both the operations, inodes refer to parent directory while dentry refers
> to child. Hope this clarifies.

Sure, but we can get to the parent directory's inode from the dentry via:

      dentry->d_parent->d_inode

... can we not?

					- Ted

  parent reply	other threads:[~2010-12-27  5:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-26 21:45 Why do we pass in a directory and a dentry to lookup() and rename() Theodore Ts'o
     [not found] ` <AANLkTikS1BMu+DyZEVZ9H6daoh5dJM7uGPUB9ugdHuRA@mail.gmail.com>
2010-12-27  5:50   ` Ted Ts'o [this message]
2010-12-28  9:46 ` Neil Brown
2011-01-05 11:26   ` Al Viro

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=20101227055001.GA10149@thunk.org \
    --to=tytso@mit.edu \
    --cc=fs.rajat@gmail.com \
    --cc=linux-fsdevel@vger.kernel.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 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.