| To: | Christoph Hellwig <hch@xxxxxx> |
|---|---|
| Subject: | Re: [PATCH] streamline init/exit path |
| From: | Niv Sardi <xaiki@xxxxxxx> |
| Date: | Wed, 21 May 2008 17:01:51 +1000 |
| Cc: | xfs@xxxxxxxxxxx |
| In-reply-to: | <20080521060103.GA25003@lst.de> (Christoph Hellwig's message of "Wed, 21 May 2008 08:01:03 +0200") |
| References: | <20080518130511.GA28501@lst.de> <nccprrg32vr.fsf@sgi.com> <20080521060103.GA25003@lst.de> |
| Sender: | xfs-bounce@xxxxxxxxxxx |
| User-agent: | Gnus/5.110009 (No Gnus v0.9) Emacs/23.0.60 (i486-pc-linux-gnu) |
Christoph Hellwig <hch@xxxxxx> writes:
> On Wed, May 21, 2008 at 10:41:12AM +1000, Niv Sardi wrote:
>> Looks good, appart from the fact that I don't see the point of merging
>> xfs_{init,destroy}_zones into xfs_{init,exit}, appart from clobbering it
>> and making it less readeable.
>>
>> could be:
>> error = xfs_init_zones();
>> if (error)
>> goto out;
>>
>> and all the other error cases will end with
>> xfs_destroy_zones();
>>
>> That would look much more like the rest of the calls in these functions.
>
> I don't really see the point for splitting this up, it's not like it
> makes the initialization much simpler. But hey, if that's the only
> objection I can changed it.
it's not splitting it up, just leaving it split up like it was, reduces
the function length, reduces the out: gotos, and makes it nicely fit in
one editor window =)
> At least someone is looking at my xfs patches :)
Cheers =)
--
Niv Sardi
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH 2/2] always set a/c/mtime through ->setattr, Christoph Hellwig |
|---|---|
| Next by Date: | Re: [PATCH] streamline init/exit path, Christoph Hellwig |
| Previous by Thread: | Re: [PATCH] streamline init/exit path, Christoph Hellwig |
| Next by Thread: | Re: [PATCH] streamline init/exit path, Christoph Hellwig |
| Indexes: | [Date] [Thread] [Top] [All Lists] |