From: "Adam J. Richter" Subject: Re: Patch: romfs_lookup always failed in linux-2.6.25-rc3-git3 Date: Tue, 4 Mar 2008 10:40:09 -0800 Message-ID: <20080304184009.GB24301@freya.fugue.com> References: <20080303173620.GA9243@freya.fugue.com> <5368.1204641163@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org To: David Howells Return-path: Received: from c-67-188-67-135.hsd1.ca.comcast.net ([67.188.67.135]:33842 "EHLO freya" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1757843AbYCDSkl (ORCPT ); Tue, 4 Mar 2008 13:40:41 -0500 Content-Disposition: inline In-Reply-To: <5368.1204641163@redhat.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Tue, Mar 04, 2008 at 02:32:43PM +0000, David Howells wrote: > [...] Can you look over the attached patch as an alternative, please? Your new goto labels "error" and "success" (instead of "out" and "out0") clarify the code enough to justify your removal of the comment block, so that's all good. My only question is why you've changed res from int to long, given that you've corrected my misguided "P.S.": > Adam J. Richter wrote: [...] > > P.S. romfs_lookup casts a valid pointer to an int and then back again > > with res = PTR_ERR(inode);...return ERR_PTR(res). This may break on > > arhictectures where sizeof(int) < sizeof(pointer). > > This is not true. [...] You're right. My mistake. Sorry for causing confusion. But, based on what you've just said, it doesn't sound like you need to change res from int to long. Is there some other issue I'm missing? Anyhow, if you want to do these changes together in a single commit or separately, I'm fine with it either way. Adam Richter