projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6188e87
)
gfs2: Minor debugging improvement
author
Andreas Gruenbacher
<agruenba@redhat.com>
Sun, 6 Dec 2020 19:10:51 +0000
(20:10 +0100)
committer
Andreas Gruenbacher
<agruenba@redhat.com>
Tue, 19 Jan 2021 20:17:45 +0000
(21:17 +0100)
Split the assert in gfs2_trans_end into two parts.
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
fs/gfs2/trans.c
patch
|
blob
|
history
diff --git
a/fs/gfs2/trans.c
b/fs/gfs2/trans.c
index 6d4bf7ea7b3be66d3fcdcb51dd0722d5d35826b3..7705f04621f4e5ef14398851e3aee645a1b454c5 100644
(file)
--- 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);