From mboxrd@z Thu Jan 1 00:00:00 1970 From: Miklos Szeredi Subject: Re: [GIT PULL] vfs.git Date: Thu, 11 Dec 2014 17:18:21 +0100 Message-ID: References: <20141210191302.GO22149@ZenIV.linux.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Cc: Linus Torvalds , LKML , linux-fsdevel To: Al Viro Return-path: Received: from mail-ie0-f169.google.com ([209.85.223.169]:54332 "EHLO mail-ie0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934322AbaLKQSY (ORCPT ); Thu, 11 Dec 2014 11:18:24 -0500 Received: by mail-ie0-f169.google.com with SMTP id y20so5177491ier.28 for ; Thu, 11 Dec 2014 08:18:23 -0800 (PST) In-Reply-To: <20141210191302.GO22149@ZenIV.linux.org.uk> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Wed, Dec 10, 2014 at 8:13 PM, Al Viro wrote: > * killing a bunch of ->f_path.dentry users (and f_dentry macro). > Getting that completed will make life much simpler for unionmount/overlayfs, > since then we'll be able to limit the places sensitive to file _dentry_ > to reasonably few. Which allows to have file_inode(file) pointing to > inode in a covered layer, with dentry pointing to (negative) dentry in > union one. Still not complete, but much closer now. If we want f_path to point to union path, then shouldn't we be hiding it from all but core VFS? Filesystems have no business looking at the mount anyway. And looking at the union dentry will be just an endless source of bugs. Also some API changes are in order, like passing dentry to ->iterate() for "readdirplus" like operations, since f_path.dentry won't be usable for that purpose. Alternatively replace f_inode with f_dentry and make file_inode() use that. Thanks, Miklos