diff options
Diffstat (limited to 'fs/gfs2/super.c')
-rw-r--r-- | fs/gfs2/super.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/fs/gfs2/super.c b/fs/gfs2/super.c index 0ec3ec672de1..42e5458703f0 100644 --- a/fs/gfs2/super.c +++ b/fs/gfs2/super.c | |||
@@ -106,13 +106,13 @@ static const match_table_t tokens = { | |||
106 | 106 | ||
107 | /** | 107 | /** |
108 | * gfs2_mount_args - Parse mount options | 108 | * gfs2_mount_args - Parse mount options |
109 | * @sdp: | 109 | * @args: The structure into which the parsed options will be written |
110 | * @data: | 110 | * @options: The options to parse |
111 | * | 111 | * |
112 | * Return: errno | 112 | * Return: errno |
113 | */ | 113 | */ |
114 | 114 | ||
115 | int gfs2_mount_args(struct gfs2_sbd *sdp, struct gfs2_args *args, char *options) | 115 | int gfs2_mount_args(struct gfs2_args *args, char *options) |
116 | { | 116 | { |
117 | char *o; | 117 | char *o; |
118 | int token; | 118 | int token; |
@@ -157,7 +157,7 @@ int gfs2_mount_args(struct gfs2_sbd *sdp, struct gfs2_args *args, char *options) | |||
157 | break; | 157 | break; |
158 | case Opt_debug: | 158 | case Opt_debug: |
159 | if (args->ar_errors == GFS2_ERRORS_PANIC) { | 159 | if (args->ar_errors == GFS2_ERRORS_PANIC) { |
160 | fs_info(sdp, "-o debug and -o errors=panic " | 160 | printk(KERN_WARNING "GFS2: -o debug and -o errors=panic " |
161 | "are mutually exclusive.\n"); | 161 | "are mutually exclusive.\n"); |
162 | return -EINVAL; | 162 | return -EINVAL; |
163 | } | 163 | } |
@@ -210,7 +210,7 @@ int gfs2_mount_args(struct gfs2_sbd *sdp, struct gfs2_args *args, char *options) | |||
210 | case Opt_commit: | 210 | case Opt_commit: |
211 | rv = match_int(&tmp[0], &args->ar_commit); | 211 | rv = match_int(&tmp[0], &args->ar_commit); |
212 | if (rv || args->ar_commit <= 0) { | 212 | if (rv || args->ar_commit <= 0) { |
213 | fs_info(sdp, "commit mount option requires a positive numeric argument\n"); | 213 | printk(KERN_WARNING "GFS2: commit mount option requires a positive numeric argument\n"); |
214 | return rv ? rv : -EINVAL; | 214 | return rv ? rv : -EINVAL; |
215 | } | 215 | } |
216 | break; | 216 | break; |
@@ -219,7 +219,7 @@ int gfs2_mount_args(struct gfs2_sbd *sdp, struct gfs2_args *args, char *options) | |||
219 | break; | 219 | break; |
220 | case Opt_err_panic: | 220 | case Opt_err_panic: |
221 | if (args->ar_debug) { | 221 | if (args->ar_debug) { |
222 | fs_info(sdp, "-o debug and -o errors=panic " | 222 | printk(KERN_WARNING "GFS2: -o debug and -o errors=panic " |
223 | "are mutually exclusive.\n"); | 223 | "are mutually exclusive.\n"); |
224 | return -EINVAL; | 224 | return -EINVAL; |
225 | } | 225 | } |
@@ -227,7 +227,7 @@ int gfs2_mount_args(struct gfs2_sbd *sdp, struct gfs2_args *args, char *options) | |||
227 | break; | 227 | break; |
228 | case Opt_error: | 228 | case Opt_error: |
229 | default: | 229 | default: |
230 | fs_info(sdp, "invalid mount option: %s\n", o); | 230 | printk(KERN_WARNING "GFS2: invalid mount option: %s\n", o); |
231 | return -EINVAL; | 231 | return -EINVAL; |
232 | } | 232 | } |
233 | } | 233 | } |
@@ -1062,7 +1062,7 @@ static int gfs2_remount_fs(struct super_block *sb, int *flags, char *data) | |||
1062 | spin_lock(>->gt_spin); | 1062 | spin_lock(>->gt_spin); |
1063 | args.ar_commit = gt->gt_log_flush_secs; | 1063 | args.ar_commit = gt->gt_log_flush_secs; |
1064 | spin_unlock(>->gt_spin); | 1064 | spin_unlock(>->gt_spin); |
1065 | error = gfs2_mount_args(sdp, &args, data); | 1065 | error = gfs2_mount_args(&args, data); |
1066 | if (error) | 1066 | if (error) |
1067 | return error; | 1067 | return error; |
1068 | 1068 | ||