linux/fs/jbd2
Duane Griffin 8a9362eb40 jbd2: replace potentially false assertion with if block
If an error occurs during jbd2 cache initialisation it is possible for the
journal_head_cache to be NULL when jbd2_journal_destroy_journal_head_cache is
called.  Replace the J_ASSERT with an if block to handle the situation
correctly.

Note that even with this fix things will break badly if jbd2 is statically
compiled in and cache initialisation fails.

Signed-off-by: Duane Griffin <duaneg@dghda.com>
Cc: <linux-ext4@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Mingming Cao <cmm@us.ibm.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-04-17 10:38:59 -04:00
..
checkpoint.c spinlock: lockbreak cleanup 2008-01-30 13:31:20 +01:00
commit.c jbd2: fix possible journal overflow issues 2008-04-17 10:38:59 -04:00
journal.c jbd2: replace potentially false assertion with if block 2008-04-17 10:38:59 -04:00
Makefile
recovery.c jbd2: correctly unescape journal data blocks 2008-03-19 18:53:36 -07:00
revoke.c jbd2: tidy up revoke cache initialisation and destruction 2008-04-28 09:40:00 -04:00
transaction.c jbd2: fix possible journal overflow issues 2008-04-17 10:38:59 -04:00