jbd/2: eliminate code duplication and gracefully handle cache initialisation failure

From: Duane Griffin
Date: Sat Mar 08 2008 - 13:38:01 EST


fs/jbd/journal.c | 149 +++++++++++++++++++++++-------------------------
fs/jbd/revoke.c | 164 +++++++++++++++++++++++------------------------------
fs/jbd2/journal.c | 154 ++++++++++++++++++++++++-------------------------
fs/jbd2/revoke.c | 164 +++++++++++++++++++++++------------------------------
4 files changed, 291 insertions(+), 340 deletions(-)

This is version 2 of the jdb/2 patches to eliminate code duplication and
gracefully handle cace initialisation failure.

Changes since V1:
* Check whether caches are initialised in journal_init_common. If not then
attempt to initialise them once before failing.
* Addressed all Andreas Dilger's comments.
* Modified the initialisation/destruction methods to match Christoph Hellwig's
suggestions.
* Rolled the if/assertion and debugfs changes into the main patch.

Andrew, please drop the earlier versions of these patches and replace them with
these ones, thanks.

Cheers,
Duane.

--
"I never could learn to drink that blood and call it wine" - Bob Dylan
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/