From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932381AbVHWUbA (ORCPT ); Tue, 23 Aug 2005 16:31:00 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932382AbVHWUbA (ORCPT ); Tue, 23 Aug 2005 16:31:00 -0400 Received: from parcelfarce.linux.theplanet.co.uk ([195.92.249.252]:60593 "EHLO parcelfarce.linux.theplanet.co.uk") by vger.kernel.org with ESMTP id S932381AbVHWUa6 (ORCPT ); Tue, 23 Aug 2005 16:30:58 -0400 Date: Tue, 23 Aug 2005 21:33:56 +0100 From: Al Viro To: Miklos Szeredi Cc: akpm@osdl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/8] namei cleanup Message-ID: <20050823203356.GF9322@parcelfarce.linux.theplanet.co.uk> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 23, 2005 at 10:26:53PM +0200, Miklos Szeredi wrote: Bad names, IMO. > +static inline void dput_path(struct path *path, struct nameidata *nd) > +{ > + dput(path->dentry); > + if (path->mnt != nd->mnt) > + mntput(path->mnt); > +} > + > +static inline void path_to_nameidata(struct path *path, struct nameidata *nd) > +{ > + dput(nd->dentry); > + if (nd->mnt != path->mnt) > + mntput(nd->mnt); > + nd->mnt = path->mnt; > + nd->dentry = path->dentry; > +}