We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c65dce5 commit 8efca48Copy full SHA for 8efca48
fs/ocfs2/journal.c
@@ -1016,7 +1016,8 @@ void ocfs2_journal_shutdown(struct ocfs2_super *osb)
1016
mlog_errno(status);
1017
}
1018
1019
- if (status == 0) {
+ /* Shutdown the kernel journal system */
1020
+ if (!jbd2_journal_destroy(journal->j_journal) && !status) {
1021
/*
1022
* Do not toggle if flush was unsuccessful otherwise
1023
* will leave dirty metadata in a "clean" journal
@@ -1025,9 +1026,6 @@ void ocfs2_journal_shutdown(struct ocfs2_super *osb)
1025
1026
if (status < 0)
1027
1028
-
1029
- /* Shutdown the kernel journal system */
1030
- jbd2_journal_destroy(journal->j_journal);
1031
journal->j_journal = NULL;
1032
1033
OCFS2_I(inode)->ip_open_count--;
0 commit comments