提交 625a8edd 编写于 作者: A Andreas Gruenbacher

gfs2: Minor debugging improvement

Split the assert in gfs2_trans_end into two parts.
Signed-off-by: NAndreas Gruenbacher <agruenba@redhat.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册