diff options
author | Joe Perches <joe@perches.com> | 2014-03-06 15:10:46 -0500 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2014-03-07 04:32:31 -0500 |
commit | 8382e26b2c8ba3c4be552d887eed1969dc1a95b8 (patch) | |
tree | 45f516cb15fb55b28c28756255599d7ab320d390 /fs/gfs2 | |
parent | d77d1b58aaf4456946b8502c67f16b52fda60303 (diff) |
GFS2: Use fs_<level> more often
Convert a couple of uses of pr_<level> to fs_<level>
Add and use fs_emerg.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2')
-rw-r--r-- | fs/gfs2/quota.c | 4 | ||||
-rw-r--r-- | fs/gfs2/util.c | 6 | ||||
-rw-r--r-- | fs/gfs2/util.h | 2 |
3 files changed, 7 insertions, 5 deletions
diff --git a/fs/gfs2/quota.c b/fs/gfs2/quota.c index 73ed92535c8a..27f9435ddd20 100644 --- a/fs/gfs2/quota.c +++ b/fs/gfs2/quota.c | |||
@@ -1083,8 +1083,8 @@ static int print_message(struct gfs2_quota_data *qd, char *type) | |||
1083 | { | 1083 | { |
1084 | struct gfs2_sbd *sdp = qd->qd_gl->gl_sbd; | 1084 | struct gfs2_sbd *sdp = qd->qd_gl->gl_sbd; |
1085 | 1085 | ||
1086 | pr_info("fsid=%s: quota %s for %s %u\n", | 1086 | fs_info(sdp, "quota %s for %s %u\n", |
1087 | sdp->sd_fsname, type, | 1087 | type, |
1088 | (qd->qd_id.type == USRQUOTA) ? "user" : "group", | 1088 | (qd->qd_id.type == USRQUOTA) ? "user" : "group", |
1089 | from_kqid(&init_user_ns, qd->qd_id)); | 1089 | from_kqid(&init_user_ns, qd->qd_id)); |
1090 | 1090 | ||
diff --git a/fs/gfs2/util.c b/fs/gfs2/util.c index 02fb38db9d19..84bf853046ae 100644 --- a/fs/gfs2/util.c +++ b/fs/gfs2/util.c | |||
@@ -32,7 +32,7 @@ mempool_t *gfs2_page_pool __read_mostly; | |||
32 | 32 | ||
33 | void gfs2_assert_i(struct gfs2_sbd *sdp) | 33 | void gfs2_assert_i(struct gfs2_sbd *sdp) |
34 | { | 34 | { |
35 | pr_emerg("fsid=%s: fatal assertion failed\n", sdp->sd_fsname); | 35 | fs_emerg(sdp, "fatal assertion failed\n"); |
36 | } | 36 | } |
37 | 37 | ||
38 | int gfs2_lm_withdraw(struct gfs2_sbd *sdp, char *fmt, ...) | 38 | int gfs2_lm_withdraw(struct gfs2_sbd *sdp, char *fmt, ...) |
@@ -106,8 +106,8 @@ int gfs2_assert_warn_i(struct gfs2_sbd *sdp, char *assertion, | |||
106 | return -2; | 106 | return -2; |
107 | 107 | ||
108 | if (sdp->sd_args.ar_errors == GFS2_ERRORS_WITHDRAW) | 108 | if (sdp->sd_args.ar_errors == GFS2_ERRORS_WITHDRAW) |
109 | pr_warn("fsid=%s: warning: assertion \"%s\" failed at function = %s, file = %s, line = %u\n", | 109 | fs_warn(sdp, "warning: assertion \"%s\" failed at function = %s, file = %s, line = %u\n", |
110 | sdp->sd_fsname, assertion, function, file, line); | 110 | assertion, function, file, line); |
111 | 111 | ||
112 | if (sdp->sd_args.ar_debug) | 112 | if (sdp->sd_args.ar_debug) |
113 | BUG(); | 113 | BUG(); |
diff --git a/fs/gfs2/util.h b/fs/gfs2/util.h index d365733744d7..515cce2d7131 100644 --- a/fs/gfs2/util.h +++ b/fs/gfs2/util.h | |||
@@ -19,6 +19,8 @@ | |||
19 | 19 | ||
20 | #include "incore.h" | 20 | #include "incore.h" |
21 | 21 | ||
22 | #define fs_emerg(fs, fmt, ...) \ | ||
23 | pr_emerg("fsid=%s: " fmt, (fs)->sd_fsname, ##__VA_ARGS__) | ||
22 | #define fs_warn(fs, fmt, ...) \ | 24 | #define fs_warn(fs, fmt, ...) \ |
23 | pr_warn("fsid=%s: " fmt, (fs)->sd_fsname, ##__VA_ARGS__) | 25 | pr_warn("fsid=%s: " fmt, (fs)->sd_fsname, ##__VA_ARGS__) |
24 | #define fs_err(fs, fmt, ...) \ | 26 | #define fs_err(fs, fmt, ...) \ |