gfs2: introduce new gfs2_glock_assert_withdraw
authorBob Peterson <rpeterso@redhat.com>
Sat, 23 May 2020 13:13:50 +0000 (08:13 -0500)
committerAndreas Gruenbacher <agruenba@redhat.com>
Fri, 5 Jun 2020 14:44:29 +0000 (16:44 +0200)
commitea4e61c7f46d33fdf17580a925e47cc83570d658
tree93a9f0b2349114db7705f69d524e57f056cb72dc
parent7e901d6e9519db4db0dd30a33ec172dd094cfb11
gfs2: introduce new gfs2_glock_assert_withdraw

Before this patch, asserts based on glocks did not print the glock with
the error. This patch introduces a new macro, gfs2_glock_assert_withdraw
which first prints the glock, then takes the assert.

This also changes a few glock asserts to the new macro.

Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
fs/gfs2/glock.c
fs/gfs2/glock.h