Skip to content

Commit f35aa2b

Browse files
author
Al Viro
committed
tmpfs: switch to use of invalfc()
Signed-off-by: Al Viro <[email protected]>
1 parent 58c025f commit f35aa2b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mm/shmem.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3475,9 +3475,9 @@ static int shmem_parse_one(struct fs_context *fc, struct fs_parameter *param)
34753475
return 0;
34763476

34773477
unsupported_parameter:
3478-
return invalf(fc, "tmpfs: Unsupported parameter '%s'", param->key);
3478+
return invalfc(fc, "Unsupported parameter '%s'", param->key);
34793479
bad_value:
3480-
return invalf(fc, "tmpfs: Bad value for '%s'", param->key);
3480+
return invalfc(fc, "Bad value for '%s'", param->key);
34813481
}
34823482

34833483
static int shmem_parse_options(struct fs_context *fc, void *data)
@@ -3583,7 +3583,7 @@ static int shmem_reconfigure(struct fs_context *fc)
35833583
return 0;
35843584
out:
35853585
spin_unlock(&sbinfo->stat_lock);
3586-
return invalf(fc, "tmpfs: %s", err);
3586+
return invalfc(fc, "%s", err);
35873587
}
35883588

35893589
static int shmem_show_options(struct seq_file *seq, struct dentry *root)

0 commit comments

Comments
 (0)