projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
49887e4
)
jbd2: drop useless error tag in jbd2_journal_wipe()
author
Zhang Yi
<yi.zhang@huawei.com>
Fri, 11 Aug 2023 06:36:07 +0000
(14:36 +0800)
committer
Theodore Ts'o
<tytso@mit.edu>
Tue, 15 Aug 2023 13:00:34 +0000
(09:00 -0400)
no_recovery is redundant, just drop it.
Signed-off-by: Zhang Yi <yi.zhang@huawei.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Link:
https://lore.kernel.org/r/20230811063610.2980059-10-yi.zhang@huaweicloud.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/jbd2/journal.c
patch
|
blob
|
history
diff --git
a/fs/jbd2/journal.c
b/fs/jbd2/journal.c
index 04b67844118c92de025bec74afb39dbe1b3337c4..6482fcca3dc67716cd0099cccbd8f9d0286c2be9 100644
(file)
--- a/
fs/jbd2/journal.c
+++ b/
fs/jbd2/journal.c
@@
-2500,12
+2500,12
@@
out:
int jbd2_journal_wipe(journal_t *journal, int write)
{
- int err
= 0
;
+ int err;
J_ASSERT (!(journal->j_flags & JBD2_LOADED));
if (!journal->j_tail)
-
goto no_recovery
;
+
return 0
;
printk(KERN_WARNING "JBD2: %s recovery information on journal\n",
write ? "Clearing" : "Ignoring");
@@
-2518,7
+2518,6
@@
int jbd2_journal_wipe(journal_t *journal, int write)
mutex_unlock(&journal->j_checkpoint_mutex);
}
- no_recovery:
return err;
}