diff options
author | Andreas Gruenbacher <agruenba@redhat.com> | 2020-12-06 20:10:51 +0100 |
---|---|---|
committer | Andreas Gruenbacher <agruenba@redhat.com> | 2021-01-19 21:17:45 +0100 |
commit | 625a8edd5e00e7c4c70a125a433ec7598d9f0c27 (patch) | |
tree | b85ea8a6652b45b4f8c33e273a40bd4f12953bb2 | |
parent | 6188e8777de48c8404b0bcca74a70ac83c37d773 (diff) | |
download | linux-stable-625a8edd5e00e7c4c70a125a433ec7598d9f0c27.tar.gz linux-stable-625a8edd5e00e7c4c70a125a433ec7598d9f0c27.tar.bz2 linux-stable-625a8edd5e00e7c4c70a125a433ec7598d9f0c27.zip |
gfs2: Minor debugging improvement
Split the assert in gfs2_trans_end into two parts.
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
-rw-r--r-- | fs/gfs2/trans.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/gfs2/trans.c b/fs/gfs2/trans.c index 6d4bf7ea7b3b..7705f04621f4 100644 --- a/fs/gfs2/trans.c +++ b/fs/gfs2/trans.c @@ -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); |