summaryrefslogtreecommitdiffstats
path: root/kernel/fs/ext4/ext4_jbd2.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/fs/ext4/ext4_jbd2.c')
-rw-r--r--kernel/fs/ext4/ext4_jbd2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/fs/ext4/ext4_jbd2.c b/kernel/fs/ext4/ext4_jbd2.c
index d41843181..e770c1ee4 100644
--- a/kernel/fs/ext4/ext4_jbd2.c
+++ b/kernel/fs/ext4/ext4_jbd2.c
@@ -88,13 +88,13 @@ int __ext4_journal_stop(const char *where, unsigned int line, handle_t *handle)
return 0;
}
+ err = handle->h_err;
if (!handle->h_transaction) {
- err = jbd2_journal_stop(handle);
- return handle->h_err ? handle->h_err : err;
+ rc = jbd2_journal_stop(handle);
+ return err ? err : rc;
}
sb = handle->h_transaction->t_journal->j_private;
- err = handle->h_err;
rc = jbd2_journal_stop(handle);
if (!err)