diff options
author | Sunil Mushran <sunil.mushran@oracle.com> | 2008-10-23 00:24:29 +0400 |
---|---|---|
committer | Mark Fasheh <mfasheh@suse.com> | 2008-11-10 20:51:47 +0300 |
commit | ae0dff683076b2798763288c7ac2f09a18c4a998 (patch) | |
tree | 191b95751d25a6480619dc2cbbe340da4adddfcc /fs/ocfs2/journal.c | |
parent | d32647993c211901fc4819ef3327f62d1859241b (diff) | |
download | linux-ae0dff683076b2798763288c7ac2f09a18c4a998.tar.xz |
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>
Diffstat (limited to 'fs/ocfs2/journal.c')
-rw-r--r-- | fs/ocfs2/journal.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ocfs2/journal.c b/fs/ocfs2/journal.c index 81e40677eecb..99fe9d584f3c 100644 --- a/fs/ocfs2/journal.c +++ b/fs/ocfs2/journal.c @@ -690,6 +690,7 @@ void ocfs2_journal_shutdown(struct ocfs2_super *osb) /* Shutdown the kernel journal system */ jbd2_journal_destroy(journal->j_journal); + journal->j_journal = NULL; OCFS2_I(inode)->ip_open_count--; |