Commit a440943e authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Gabriel Krisman Bertazi

unicode: remove the charset field from struct unicode_map

It is hardcoded and only used for a f2fs sysfs file where it can be
hardcoded just as easily.
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarGabriel Krisman Bertazi <krisman@collabora.com>
Signed-off-by: default avatarGabriel Krisman Bertazi <krisman@collabora.com>
parent 86e80575
...@@ -196,8 +196,7 @@ static ssize_t encoding_show(struct f2fs_attr *a, ...@@ -196,8 +196,7 @@ static ssize_t encoding_show(struct f2fs_attr *a,
struct super_block *sb = sbi->sb; struct super_block *sb = sbi->sb;
if (f2fs_sb_has_casefold(sbi)) if (f2fs_sb_has_casefold(sbi))
return snprintf(buf, PAGE_SIZE, "%s (%d.%d.%d)\n", return snprintf(buf, PAGE_SIZE, "UTF-8 (%d.%d.%d)\n",
sb->s_encoding->charset,
(sb->s_encoding->version >> 16) & 0xff, (sb->s_encoding->version >> 16) & 0xff,
(sb->s_encoding->version >> 8) & 0xff, (sb->s_encoding->version >> 8) & 0xff,
sb->s_encoding->version & 0xff); sb->s_encoding->version & 0xff);
......
...@@ -219,10 +219,7 @@ struct unicode_map *utf8_load(const char *version) ...@@ -219,10 +219,7 @@ struct unicode_map *utf8_load(const char *version)
um = kzalloc(sizeof(struct unicode_map), GFP_KERNEL); um = kzalloc(sizeof(struct unicode_map), GFP_KERNEL);
if (!um) if (!um)
return ERR_PTR(-ENOMEM); return ERR_PTR(-ENOMEM);
um->charset = "UTF-8";
um->version = unicode_version; um->version = unicode_version;
return um; return um;
} }
EXPORT_SYMBOL(utf8_load); EXPORT_SYMBOL(utf8_load);
......
...@@ -6,7 +6,6 @@ ...@@ -6,7 +6,6 @@
#include <linux/dcache.h> #include <linux/dcache.h>
struct unicode_map { struct unicode_map {
const char *charset;
int version; int version;
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment