From mboxrd@z Thu Jan 1 00:00:00 1970 From: Artem Bityutskiy Subject: Re: Is VFS behavior fine? Date: Wed, 02 Jul 2008 16:18:44 +0300 Message-ID: <486B8034.1020904@nokia.com> References: <486B419F.7050407@nokia.com> Reply-To: Artem.Bityutskiy@nokia.com Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: linux-kernel@vger.kernel.org, hch@infradead.org, linux-fsdevel@vger.kernel.org, ext-Adrian.Hunter@nokia.com To: Miklos Szeredi Return-path: Received: from smtp.nokia.com ([192.100.122.233]:30296 "EHLO mgw-mx06.nokia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753740AbYGBNVA (ORCPT ); Wed, 2 Jul 2008 09:21:00 -0400 In-Reply-To: Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Miklos Szeredi wrote: >> I may just say that I fixed this in UBIFS by not calling >> 'd_splice_alias()' for not found dentries if the parent >> directory inode has 'n_link' =3D 0. However, ext[23] always >> call 'd_splice_alias()' for not found direntries (passing >> NULL as the 'inode' parameter). >> >> Again, I am not 100% sure this is the right fix, because >> I suspect this should be "fixed" in VFS. I tried to do this >> and I have a small VFS patch, but it is probably incorrect. >=20 > The correct fix IMO is to make lookup return ENOENT on an IS_DEADDIR(= ) > inode, before even trying to create the child dentry. Sounds correct, thanks for the replay. > Untested patch attached. Looks fine. Tried it, looks fine and solves my problem. Ran some of my tests and they did not fail. Hopefully this patch will make his way to mainline. Thanks. --=20 Best Regards, Artem Bityutskiy (=D0=90=D1=80=D1=82=D1=91=D0=BC =D0=91=D0=B8=D1=82=D1=8E= =D1=86=D0=BA=D0=B8=D0=B9) -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel= " in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html