gfs2: Improve gfs2_consist_inode() usage
authorAndrew Price <anprice@redhat.com>
Thu, 11 Jan 2024 17:42:58 +0000 (17:42 +0000)
committerAndreas Gruenbacher <agruenba@redhat.com>
Tue, 9 Apr 2024 16:35:57 +0000 (18:35 +0200)
commit10398ef57aa189153406c110f5957145030f08fe
treef398bca8c1ba44029db6ffe6579c6142df1aadb5
parentc95346ac918c5badf51b9a7ac58a26d3bd5bb224
gfs2: Improve gfs2_consist_inode() usage

gfs2_consist_inode() logs an error message with the source file and line
number. When we jump before calling it, the line number becomes less
useful as it no longer relates to the source of the error. To aid
troubleshooting, replace the gotos with the gfs2_consist_inode() calls
so that the error messages are more informative.

Signed-off-by: Andrew Price <anprice@redhat.com>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
fs/gfs2/dir.c
fs/gfs2/glops.c
fs/gfs2/xattr.c