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 532e1e5 commit d85400aCopy full SHA for d85400a
fs/ocfs2/journal.c
@@ -1017,7 +1017,8 @@ void ocfs2_journal_shutdown(struct ocfs2_super *osb)
1017
mlog_errno(status);
1018
}
1019
1020
- if (status == 0) {
+ /* Shutdown the kernel journal system */
1021
+ if (!jbd2_journal_destroy(journal->j_journal) && !status) {
1022
/*
1023
* Do not toggle if flush was unsuccessful otherwise
1024
* will leave dirty metadata in a "clean" journal
@@ -1026,9 +1027,6 @@ void ocfs2_journal_shutdown(struct ocfs2_super *osb)
1026
1027
if (status < 0)
1028
1029
-
1030
- /* Shutdown the kernel journal system */
1031
- jbd2_journal_destroy(journal->j_journal);
1032
journal->j_journal = NULL;
1033
1034
OCFS2_I(inode)->ip_open_count--;
0 commit comments