summaryrefslogtreecommitdiff
path: root/fs/f2fs
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2021-09-15 08:59:58 +0200
committerGabriel Krisman Bertazi <krisman@collabora.com>2021-10-11 17:01:35 -0300
commita440943e68cd1b5a853a6f60865967b7cc2539eb (patch)
treea73330ff8f1e3b7c2364517d87cddd56418adb19 /fs/f2fs
parent86e8057579780b4ec0fa04774dce2855344bf62d (diff)
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: Christoph Hellwig <hch@lst.de> Reviewed-by: Gabriel Krisman Bertazi <krisman@collabora.com> Signed-off-by: Gabriel Krisman Bertazi <krisman@collabora.com>
Diffstat (limited to 'fs/f2fs')
-rw-r--r--fs/f2fs/sysfs.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/f2fs/sysfs.c b/fs/f2fs/sysfs.c
index a32fe31c33b8..650e84398f74 100644
--- a/fs/f2fs/sysfs.c
+++ b/fs/f2fs/sysfs.c
@@ -196,8 +196,7 @@ static ssize_t encoding_show(struct f2fs_attr *a,
struct super_block *sb = sbi->sb;
if (f2fs_sb_has_casefold(sbi))
- return snprintf(buf, PAGE_SIZE, "%s (%d.%d.%d)\n",
- sb->s_encoding->charset,
+ return snprintf(buf, PAGE_SIZE, "UTF-8 (%d.%d.%d)\n",
(sb->s_encoding->version >> 16) & 0xff,
(sb->s_encoding->version >> 8) & 0xff,
sb->s_encoding->version & 0xff);