]> 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)
commit9e25dd0c9e9b7370ca2cb5680806b00d7883ed0c
treebefa07de709ef328215737153c2b1ec7b81a547a
parent717755fa186659538ad2710055ca1f4575ff226c
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