OSDN Git Service

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)
commitc98c2ca5eae988c47991074643e5543df60ada35
treebefa07de709ef328215737153c2b1ec7b81a547a
parentc1442f6b53d887d08a098ec23056be7cfea1e3c7
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