Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752278AbcCUFXH (ORCPT ); Mon, 21 Mar 2016 01:23:07 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:59515 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750949AbcCUFW6 (ORCPT ); Mon, 21 Mar 2016 01:22:58 -0400 Date: Mon, 21 Mar 2016 05:22:53 +0000 From: Al Viro To: "Theodore Ts'o" , Miklos Szeredi , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, dhowells@redhat.com, Goldwyn Rodrigues , Trond Myklebust , stable@vger.kernel.org, Daniel Axtens Subject: Re: [PATCH 1/4] vfs: add file_dentry() Message-ID: <20160321052252.GG17997@ZenIV.linux.org.uk> References: <1458205323-25685-1-git-send-email-miklos@szeredi.hu> <20160321050215.GD3331@thunk.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160321050215.GD3331@thunk.org> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 765 Lines: 25 On Mon, Mar 21, 2016 at 01:02:15AM -0400, Theodore Ts'o wrote: > I have this patch in the ext4.git tree, but I'd like to get an > Acked-by from Al before I send a pull request to Linus. > > Al? Any objections to my sending in this change via the ext4 tree? > - Ted FWIW, I would rather add DCACHE_OP_REAL (set at d_set_d_op() time) and turned that into static inline struct dentry *d_real(const struct dentry *dentry) { if (unlikely(dentry->d_flags & DCACHE_OP_NATIVE_DENTRY)) returd dentry->d_op->d_real(dentry); else return dentry; } static inline struct dentry *file_dentry(const struct file *file) { return d_real(file->f_path.dentry); } and used ovl_dentry_real as ->d_real for overlayfs. Miklos, do you see any problems with that variant?