From mboxrd@z Thu Jan 1 00:00:00 1970 From: viro@parcelfarce.linux.theplanet.co.uk Subject: Re: [PATCH] ext3 [linux-2.6.2.]: accessing already freed inodes when under memory pressure Date: Fri, 2 Apr 2004 20:10:00 +0100 Sender: linux-fsdevel-owner@vger.kernel.org Message-ID: <20040402191000.GD31500@parcelfarce.linux.theplanet.co.uk> References: <1080653969.24117.192.camel@hades.cambridge.redhat.com> <20040402161223.GZ31500@parcelfarce.linux.theplanet.co.uk> <20040402180111.GB31500@parcelfarce.linux.theplanet.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: David Woodhouse , Martin Schwidefsky , Andrew Morton , Carsten Otte , Carsten Otte , linux-fsdevel@vger.kernel.org, sct@redhat.com, Dave Kleikamp Return-path: Received: from parcelfarce.linux.theplanet.co.uk ([195.92.249.252]:52636 "EHLO www.linux.org.uk") by vger.kernel.org with ESMTP id S264157AbUDBTKD (ORCPT ); Fri, 2 Apr 2004 14:10:03 -0500 To: Linus Torvalds Content-Disposition: inline In-Reply-To: List-Id: linux-fsdevel.vger.kernel.org On Fri, Apr 02, 2004 at 11:02:24AM -0800, Linus Torvalds wrote: > > > On Fri, 2 Apr 2004, Linus Torvalds wrote: > > > > I think that -EXDEV is not only OK, it's _required_. It may be the same > > physical filesystem, but it's a different mount and thus a different > > filesystem. > > Actually, we already do this in "sys_link()" and "do_rename()": > > sys_link: > > error = -EXDEV; > if (old_nd.mnt != nd.mnt) > goto out_release; > new_dentry = lookup_create(&nd, 0); > so this case should already be ok, no? This case is OK now, but we'll need to do explicit lookup_mnt() since we are switching to LOOKUP_PARENT for old_mnt.