From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ted Ts'o 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 Message-ID: <20101227055001.GA10149@thunk.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Al Viro , linux-fsdevel@vger.kernel.org To: Rajat Sharma Return-path: Received: from THUNK.ORG ([69.25.196.29]:42743 "EHLO thunker.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750850Ab0L0FuQ (ORCPT ); Mon, 27 Dec 2010 00:50:16 -0500 Content-Disposition: inline In-Reply-To: Sender: linux-fsdevel-owner@vger.kernel.org List-ID: 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