summaryrefslogtreecommitdiffstats
path: root/fs/gfs2/util.c
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruenba@redhat.com>2024-02-27 22:57:08 +0100
committerAndreas Gruenbacher <agruenba@redhat.com>2024-04-09 18:35:57 +0200
commit795405c4b995efc4f6b6b561200c384bdda07c02 (patch)
tree7edb876f9e4cf0801873f6a3f2882ed33140debe /fs/gfs2/util.c
parentb204b1b61eff8d5ac1aefcb00547a5f4002be47d (diff)
downloadlinux-795405c4b995efc4f6b6b561200c384bdda07c02.tar.gz
linux-795405c4b995efc4f6b6b561200c384bdda07c02.tar.bz2
linux-795405c4b995efc4f6b6b561200c384bdda07c02.zip
gfs2: Remove unnecessary gfs2_meta_check_ii argument
The type argument of gfs2_meta_check_ii() is always set to "magic number", so remove that argument and hardcode the string in gfs2_meta_check_ii(). Change the string to "bad magic number" to emphasize that the problem is the incorrect magic number. Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Diffstat (limited to 'fs/gfs2/util.c')
-rw-r--r--fs/gfs2/util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/gfs2/util.c b/fs/gfs2/util.c
index fd65a2e34102..963d77c4ca21 100644
--- a/fs/gfs2/util.c
+++ b/fs/gfs2/util.c
@@ -488,16 +488,16 @@ void gfs2_consist_rgrpd_i(struct gfs2_rgrpd *rgd,
*/
int gfs2_meta_check_ii(struct gfs2_sbd *sdp, struct buffer_head *bh,
- const char *type, const char *function, char *file,
+ const char *function, char *file,
unsigned int line)
{
int me;
gfs2_lm(sdp,
"fatal: invalid metadata block - "
- "bh = %llu (%s), "
+ "bh = %llu (bad magic number), "
"function = %s, file = %s, line = %u\n",
- (unsigned long long)bh->b_blocknr, type,
+ (unsigned long long)bh->b_blocknr,
function, file, line);
me = gfs2_withdraw(sdp);
return (me) ? -1 : -2;