]> git.baikalelectronics.ru Git - kernel.git/commit
gfs2: Switch some BUG_ON to GLOCK_BUG_ON for debug
authorBob Peterson <rpeterso@redhat.com>
Tue, 14 Sep 2021 13:16:58 +0000 (08:16 -0500)
committerAndreas Gruenbacher <agruenba@redhat.com>
Mon, 25 Oct 2021 06:42:18 +0000 (08:42 +0200)
commita28f6f9de206b0e0eec351934b3f2bf91e67edbe
treebefa07de709ef328215737153c2b1ec7b81a547a
parent01b3bd9841adc4527423e17f68bbdc5e8d57ede6
gfs2: Switch some BUG_ON to GLOCK_BUG_ON for debug

In rgrp.c, there are several places where it does BUG_ON. This tells us
the call stack but nothing more, which is not very helpful.
This patch switches them to GLOCK_BUG_ON which also prints the glock,
its holders, and many of the rgrp values, which will help us debug
problems in the future.

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