mirror of
https://github.com/torvalds/linux.git
synced 2026-08-01 03:59:40 +02:00
Merge 783cc68d61 ("ocfs2: use BUG_ON instead of if condition followed by BUG.") into android-mainline
Steps on the way to 5.17-rc1 Signed-off-by: Greg Kroah-Hartman <gregkh@google.com> Change-Id: Iddf6bb075742acd4839acafb011d6cdda14dfc30
This commit is contained in:
commit
4c35a79a0a
|
|
@ -1669,8 +1669,7 @@ static int ocfs2_replay_journal(struct ocfs2_super *osb,
|
|||
status = jbd2_journal_load(journal);
|
||||
if (status < 0) {
|
||||
mlog_errno(status);
|
||||
if (!igrab(inode))
|
||||
BUG();
|
||||
BUG_ON(!igrab(inode));
|
||||
jbd2_journal_destroy(journal);
|
||||
goto done;
|
||||
}
|
||||
|
|
@ -1699,8 +1698,7 @@ static int ocfs2_replay_journal(struct ocfs2_super *osb,
|
|||
if (status < 0)
|
||||
mlog_errno(status);
|
||||
|
||||
if (!igrab(inode))
|
||||
BUG();
|
||||
BUG_ON(!igrab(inode));
|
||||
|
||||
jbd2_journal_destroy(journal);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user