aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/super.c
diff options
context:
space:
mode:
authorSteven Whitehouse <swhiteho@redhat.com>2006-02-27 10:57:14 -0500
committerSteven Whitehouse <swhiteho@redhat.com>2006-02-27 10:57:14 -0500
commitd92a8d48085df863032110d9ccb221cde98d14e1 (patch)
treefaf03d9c10e104f3ab3fb8264e70b4662bae5d33 /fs/gfs2/super.c
parent2fcb4a1278ec41508d76786f4c5d23bff3b378ee (diff)
[GFS2] Audit printk and kmalloc
All printk calls now have KERN_ set where required and a couple of kmalloc(), memset(.., 0, ...) calls changed to kzalloc(). This is in response to comments from: Pekka Enberg <penberg@cs.helsinki.fi> and Eric Sesterhenn <snakebyte@gmx.de> Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/super.c')
-rw-r--r--fs/gfs2/super.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/fs/gfs2/super.c b/fs/gfs2/super.c
index be80771c414d..60e266618729 100644
--- a/fs/gfs2/super.c
+++ b/fs/gfs2/super.c
@@ -94,7 +94,7 @@ int gfs2_check_sb(struct gfs2_sbd *sdp, struct gfs2_sb *sb, int silent)
94 if (sb->sb_header.mh_magic != GFS2_MAGIC || 94 if (sb->sb_header.mh_magic != GFS2_MAGIC ||
95 sb->sb_header.mh_type != GFS2_METATYPE_SB) { 95 sb->sb_header.mh_type != GFS2_METATYPE_SB) {
96 if (!silent) 96 if (!silent)
97 printk("GFS2: not a GFS2 filesystem\n"); 97 printk(KERN_WARNING "GFS2: not a GFS2 filesystem\n");
98 return -EINVAL; 98 return -EINVAL;
99 } 99 }
100 100
@@ -110,11 +110,11 @@ int gfs2_check_sb(struct gfs2_sbd *sdp, struct gfs2_sb *sb, int silent)
110 break; 110 break;
111 111
112 if (!gfs2_old_fs_formats[x]) { 112 if (!gfs2_old_fs_formats[x]) {
113 printk("GFS2: code version (%u, %u) is incompatible " 113 printk(KERN_WARNING "GFS2: code version (%u, %u) is incompatible "
114 "with ondisk format (%u, %u)\n", 114 "with ondisk format (%u, %u)\n",
115 GFS2_FORMAT_FS, GFS2_FORMAT_MULTI, 115 GFS2_FORMAT_FS, GFS2_FORMAT_MULTI,
116 sb->sb_fs_format, sb->sb_multihost_format); 116 sb->sb_fs_format, sb->sb_multihost_format);
117 printk("GFS2: I don't know how to upgrade this FS\n"); 117 printk(KERN_WARNING "GFS2: I don't know how to upgrade this FS\n");
118 return -EINVAL; 118 return -EINVAL;
119 } 119 }
120 } 120 }
@@ -125,23 +125,23 @@ int gfs2_check_sb(struct gfs2_sbd *sdp, struct gfs2_sb *sb, int silent)
125 break; 125 break;
126 126
127 if (!gfs2_old_multihost_formats[x]) { 127 if (!gfs2_old_multihost_formats[x]) {
128 printk("GFS2: code version (%u, %u) is incompatible " 128 printk(KERN_WARNING "GFS2: code version (%u, %u) is incompatible "
129 "with ondisk format (%u, %u)\n", 129 "with ondisk format (%u, %u)\n",
130 GFS2_FORMAT_FS, GFS2_FORMAT_MULTI, 130 GFS2_FORMAT_FS, GFS2_FORMAT_MULTI,
131 sb->sb_fs_format, sb->sb_multihost_format); 131 sb->sb_fs_format, sb->sb_multihost_format);
132 printk("GFS2: I don't know how to upgrade this FS\n"); 132 printk(KERN_WARNING "GFS2: I don't know how to upgrade this FS\n");
133 return -EINVAL; 133 return -EINVAL;
134 } 134 }
135 } 135 }
136 136
137 if (!sdp->sd_args.ar_upgrade) { 137 if (!sdp->sd_args.ar_upgrade) {
138 printk("GFS2: code version (%u, %u) is incompatible " 138 printk(KERN_WARNING "GFS2: code version (%u, %u) is incompatible "
139 "with ondisk format (%u, %u)\n", 139 "with ondisk format (%u, %u)\n",
140 GFS2_FORMAT_FS, GFS2_FORMAT_MULTI, 140 GFS2_FORMAT_FS, GFS2_FORMAT_MULTI,
141 sb->sb_fs_format, sb->sb_multihost_format); 141 sb->sb_fs_format, sb->sb_multihost_format);
142 printk("GFS2: Use the \"upgrade\" mount option to upgrade " 142 printk(KERN_INFO "GFS2: Use the \"upgrade\" mount option to upgrade "
143 "the FS\n"); 143 "the FS\n");
144 printk("GFS2: See the manual for more details\n"); 144 printk(KERN_INFO "GFS2: See the manual for more details\n");
145 return -EINVAL; 145 return -EINVAL;
146 } 146 }
147 147