ocfs2: Set journal descriptor to NULL after journal shutdown
authorSunil Mushran <sunil.mushran@oracle.com>
Wed, 22 Oct 2008 20:24:29 +0000 (13:24 -0700)
committerMark Fasheh <mfasheh@suse.com>
Mon, 10 Nov 2008 17:51:47 +0000 (09:51 -0800)
commitae0dff683076b2798763288c7ac2f09a18c4a998
tree191b95751d25a6480619dc2cbbe340da4adddfcc
parentd32647993c211901fc4819ef3327f62d1859241b
ocfs2: Set journal descriptor to NULL after journal shutdown

Patch sets journal descriptor to NULL after the journal is shutdown.
This ensures that jbd2_journal_release_jbd_inode(), which removes the
jbd2 inode from txn lists, can be called safely from ocfs2_clear_inode()
even after the journal has been shutdown.

Signed-off-by: Sunil Mushran <sunil.mushran@oracle.com>
Signed-off-by: Joel Becker <joel.becker@oracle.com>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
fs/ocfs2/inode.c
fs/ocfs2/journal.c