| To: | Christoph Hellwig <hch@xxxxxx> |
|---|---|
| Subject: | Re: [PATCH] streamline init/exit path |
| From: | Niv Sardi <xaiki@xxxxxxx> |
| Date: | Wed, 21 May 2008 10:41:12 +1000 |
| Cc: | xfs@xxxxxxxxxxx |
| In-reply-to: | <20080518130511.GA28501@xxxxxx> (Christoph Hellwig's message of "Sun, 18 May 2008 15:05:11 +0200") |
| References: | <20080518130511.GA28501@xxxxxx> |
| 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:
> Currently the xfs module init/exit code is a mess. It's farmed out
> over a lot of function with very little error checking. This patch
> merges xfs_init_zones and xfs_init into init_xfs_fs, and makes sure
> we propagate all initialization failures properly and clean up after
> them. Various runtime initializations are replaced with compile-time
> initializations where possible to make this easier. The exit path
> is similarly consolidated.
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.
--
Niv Sardi
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH 3/4] XFS: Return case-insensitive match for dentry cache, Sunil Mushran |
|---|---|
| Next by Date: | Re: [RFC PATCH 1/3] Implement generic freeze feature, Takashi Sato |
| Previous by Thread: | [PATCH] streamline init/exit path, Christoph Hellwig |
| Next by Thread: | Re: [PATCH] streamline init/exit path, Christoph Hellwig |
| Indexes: | [Date] [Thread] [Top] [All Lists] |