unicode: cache the normalization tables in struct unicode_map
authorChristoph Hellwig <hch@lst.de>
Wed, 15 Sep 2021 07:00:04 +0000 (09:00 +0200)
committerGabriel Krisman Bertazi <krisman@collabora.com>
Mon, 11 Oct 2021 20:02:02 +0000 (17:02 -0300)
commit6ca99ce756c27852d1ea1e555045de1c920f30ed
tree3cedb519da25bfe7e8c3cce48f03c47599ce953e
parentfbc59d65059ecfea8b746715e920c325cc16cede
unicode: cache the normalization tables in struct unicode_map

Instead of repeatedly looking up the version add pointers to the
NFD and NFD+CF tables to struct unicode_map, and pass a
unicode_map plus index to the functions using the normalization
tables.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Gabriel Krisman Bertazi <krisman@collabora.com>
fs/unicode/utf8-core.c
fs/unicode/utf8-norm.c
fs/unicode/utf8-selftest.c
fs/unicode/utf8n.h
include/linux/unicode.h