]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7b7a4663bb0bde1d77765132b6213ec86d3cf196
tree191b95751d25a6480619dc2cbbe340da4adddfcc
parent9a8eb18334396d5098c45171680a2fcdea759662
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