Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161157AbWJUXNT (ORCPT ); Sat, 21 Oct 2006 19:13:19 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1161160AbWJUXNT (ORCPT ); Sat, 21 Oct 2006 19:13:19 -0400 Received: from mail8.sea5.speakeasy.net ([69.17.117.10]:20632 "EHLO mail8.sea5.speakeasy.net") by vger.kernel.org with ESMTP id S1161157AbWJUXNS (ORCPT ); Sat, 21 Oct 2006 19:13:18 -0400 Date: Sat, 21 Oct 2006 19:13:15 -0400 (EDT) From: James Morris X-X-Sender: jmorris@d.namei To: Josef Jeff Sipek cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, akpm@osdl.org, torvalds@osdl.org, viro@ftp.linux.org.uk, hch@infradead.org Subject: Re: [PATCH 08 of 23] isofs: change uses of f_{dentry, vfsmnt} to use f_path In-Reply-To: <15a2d7465501c952a2af.1161411453@thor.fsl.cs.sunysb.edu> Message-ID: References: <15a2d7465501c952a2af.1161411453@thor.fsl.cs.sunysb.edu> 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 Content-Length: 573 Lines: 23 On Sat, 21 Oct 2006, Josef Jeff Sipek wrote: > + struct inode *inode = file->f_path.dentry->d_inode; It seems clumsy to pepper the kernel code with the above. What about something like: static inline struct inode *fpath_ino(struct file *file) { return file->f_path.dentry->d_inode; } -- James Morris - 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/