summaryrefslogtreecommitdiff
path: root/fs/nls/nls_ucs2_data.h
diff options
context:
space:
mode:
authorDr. David Alan Gilbert <linux@treblig.org>2023-08-17 01:22:32 +0100
committerSteve French <stfrench@microsoft.com>2023-08-30 08:55:52 -0500
commitf3a9b3758e0b6d40183929aba599a7da52313a3e (patch)
tree717cc6b9aca9a216be36c4a62d5399d2de9e137f /fs/nls/nls_ucs2_data.h
parentde54845290cee3f65dcd03b35a2bd7f2f7aed2ac (diff)
downloadlwn-f3a9b3758e0b6d40183929aba599a7da52313a3e.tar.gz
lwn-f3a9b3758e0b6d40183929aba599a7da52313a3e.zip
fs/jfs: Use common ucs2 upper case table
Use the UCS-2 upper case tables from nls, that are shared with smb. This code in JFS is hard to test, so we're only reusing the same tables (which are identical), not trying to reuse the rest of the helper functions. Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org> Reviewed-by: Dave Kleikamp <dave.kleikamp@oracle.com> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/nls/nls_ucs2_data.h')
-rw-r--r--fs/nls/nls_ucs2_data.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/fs/nls/nls_ucs2_data.h b/fs/nls/nls_ucs2_data.h
new file mode 100644
index 000000000000..1f454dc0f4e0
--- /dev/null
+++ b/fs/nls/nls_ucs2_data.h
@@ -0,0 +1,15 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
+#ifndef _NLS_UCS2_DATA_H
+#define _NLS_UCS2_DATA_H
+
+struct UniCaseRange {
+ wchar_t start;
+ wchar_t end;
+ signed char *table;
+};
+
+extern signed char NlsUniUpperTable[512];
+extern const struct UniCaseRange NlsUniUpperRange[];
+
+#endif /* _NLS_UCS2_DATA_H */