Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 9 Mar 2001 20:01:12 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 9 Mar 2001 20:01:02 -0500 Received: from leibniz.math.psu.edu ([146.186.130.2]:54417 "EHLO math.psu.edu") by vger.kernel.org with ESMTP id ; Fri, 9 Mar 2001 20:00:57 -0500 Date: Fri, 9 Mar 2001 20:00:15 -0500 (EST) From: Alexander Viro To: LA Walsh cc: linux-kernel@vger.kernel.org Subject: Re: (struct dentry *)->vfsmnt; In-Reply-To: <3AA9653B.B691C8F2@sgi.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 9 Mar 2001, LA Walsh wrote: > Could someone enlighten me as to the purpose of this field in the > dentry struct? There is no elucidating comment in the header for this > particular field and the name/type only indicate it is pointing to > a list of vfsmounts. Can a dentry belong to more than one vfsmount? Yes. > If I have a 'dentry' and simply want to determine what the absolute > path from root is, in the 'd_path' macro, would I use 'rootmnt' of my > current->fs as the 'vfsmount' as well? No such thing. The same fs may be present in many places. Please, describe the situation - where do you get that dentry from? Cheers, Al - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/