gfs2: Return bool from gfs2_assert functions
authorAndreas Gruenbacher <agruenba@redhat.com>
Thu, 23 Jan 2020 18:36:21 +0000 (19:36 +0100)
committerBob Peterson <rpeterso@redhat.com>
Mon, 10 Feb 2020 13:39:47 +0000 (07:39 -0600)
commit8e28ef1f2fa176854f96fb0416f2aaf5516793d0
treed343547468311d43c8c0df2dac61d13f4ec7c582
parenta5ca2f1cb66b1ef93bbd58b55b22cb50163a03db
gfs2: Return bool from gfs2_assert functions

The gfs2_assert functions only print messages when the filesystem hasn't been
withdrawn yet, and they indicate whether or not they've printed something in
their return value.  However, none of the callers use that information, so
simply return whether or not the assert has failed.

(The gfs2_assert functions are still backwards; they return false when an
assertion is true.)

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