Commit 625a8edd authored by Andreas Gruenbacher's avatar Andreas Gruenbacher

gfs2: Minor debugging improvement

Split the assert in gfs2_trans_end into two parts.
Signed-off-by: default avatarAndreas Gruenbacher <agruenba@redhat.com>
parent 6188e877
......@@ -109,8 +109,8 @@ void gfs2_trans_end(struct gfs2_sbd *sdp)
nbuf -= tr->tr_num_buf_rm;
nbuf -= tr->tr_num_databuf_rm;
if (gfs2_assert_withdraw(sdp, (nbuf <= tr->tr_blocks) &&
(tr->tr_num_revoke <= tr->tr_revokes)))
if (gfs2_assert_withdraw(sdp, nbuf <= tr->tr_blocks) ||
gfs2_assert_withdraw(sdp, tr->tr_num_revoke <= tr->tr_revokes))
gfs2_print_trans(sdp, tr);
gfs2_log_commit(sdp, tr);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment