Re: [PATCH 2/3] jbd2: replace potentially false assertion with ifblock

From: Christoph Hellwig
Date: Sat Mar 08 2008 - 10:02:50 EST


On Fri, Mar 07, 2008 at 02:23:36PM -0700, Andreas Dilger wrote:
> It would probably be prudent to verify that these caches are initialized
> at journal_load() time and either re-try to create the cache, and/or report
> an error in that case and refuse to continue mounting.

That doesn't make any sense. They're initialized in module_init and
destoryed in module_exit. They can never be zero at journal_load time
unless you get random memory corruption overwriting exactly that pointer
with zero.

--
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/