summaryrefslogtreecommitdiffstats
path: root/fs/gfs2/util.h
diff options
context:
space:
mode:
authorBob Peterson <rpeterso@redhat.com>2018-10-03 15:47:36 +0200
committerBob Peterson <rpeterso@redhat.com>2018-10-05 18:16:54 +0200
commite54c78a27fcdef406af799f360a93e6754adeefe (patch)
tree11cce8cb95ecd48c015f7f8d311154decdb90f9e /fs/gfs2/util.h
parentgfs2: slow the deluge of io error messages (diff)
downloadlinux-e54c78a27fcdef406af799f360a93e6754adeefe.tar.xz
linux-e54c78a27fcdef406af799f360a93e6754adeefe.zip
gfs2: Use fs_* functions instead of pr_* function where we can
Before this patch, various errors and messages were reported using the pr_* functions: pr_err, pr_warn, pr_info, etc., but that does not tell you which gfs2 mount had the problem, which is often vital to debugging. This patch changes the calls from pr_* to fs_* in most of the messages so that the file system id is printed along with the message. Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Diffstat (limited to 'fs/gfs2/util.h')
-rw-r--r--fs/gfs2/util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/gfs2/util.h b/fs/gfs2/util.h
index 96ac4aba4738..9278fecba632 100644
--- a/fs/gfs2/util.h
+++ b/fs/gfs2/util.h
@@ -86,7 +86,7 @@ static inline int gfs2_meta_check(struct gfs2_sbd *sdp,
struct gfs2_meta_header *mh = (struct gfs2_meta_header *)bh->b_data;
u32 magic = be32_to_cpu(mh->mh_magic);
if (unlikely(magic != GFS2_MAGIC)) {
- pr_err("Magic number missing at %llu\n",
+ fs_err(sdp, "Magic number missing at %llu\n",
(unsigned long long)bh->b_blocknr);
return -EIO;
}