Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp2297099pxf; Sat, 13 Mar 2021 15:14:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJwxLwSVEKZZO6j+MdLXPYjgpOhZh53FSpMn7HDr7DMJIqrTh7bip5eds8q53I+4jA2nNT48 X-Received: by 2002:a17:906:558:: with SMTP id k24mr16077780eja.387.1615677275222; Sat, 13 Mar 2021 15:14:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615677275; cv=none; d=google.com; s=arc-20160816; b=CHvwjKbBnQ3s+N3OVXyuFdUstfpZeEBqL/rHEqcOABcUd0t2UpeIPNhR8hlsBBDtNP R1Xw2+hj5z+oYcPEi2lVdH5v6sM0RvUHHnbrMaIl/3ppXMwmKVH4LpXqtg/Te9MQiELk bcUQyX/+fxF9wPHTL2XvHwVtVbCmHM64QxtYU/iGeOF1apv+J9tQI8yZYxyEwqLtihyH P1Jopw7f7EdIj1OG3rjcH0zDJOPJ/BSYz4r1eaeiGlKrRk10yYSNfBdntNHjY8HpeiGo c2cgdBvo+BW4vM7nM90eJAO5aeYF475GauBVcITfXBCKhZH7Tk+TXeiHz9TTwhp6wNH/ 3jkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=spd03Uor2wT6zEcOh53N8VIEUBclCwUSKJ6dlOcPPpc=; b=JTn8kxgsNyie2+1Peud9tkrJbDqahnRKvAG1dyYBBGyB2i2SAaMC93FsfmLT2Jnlk9 gcDWG6SPLQ63n4cIDn2+EJdqZBOz9gSuA+F/uhsSua95ELtmpqMulwr51mZpIwo6y6UY W7KEI1NMLgYFLmEkA2YCHN4wkT5sS8bgDeLN+os0VYaO6uErLLZJffn8drN429K1HJ7Q qVL/cUILHhD2neZqhhItxwMzhlUG83NOJBLVncHkC3s4TPWhqSnKMCCb/hF0Vks8Egqx JiMFLhTC5dEAZtuSo+zBfjXEaMKMWUwI1HXDfvvIjATxjhNqEXFpUje5oCNdTQvUQdDM vQQg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c18si7464828eds.285.2021.03.13.15.14.12; Sat, 13 Mar 2021 15:14:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233570AbhCMXNO (ORCPT + 99 others); Sat, 13 Mar 2021 18:13:14 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:41392 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231329AbhCMXM5 (ORCPT ); Sat, 13 Mar 2021 18:12:57 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: shreeya) with ESMTPSA id 5EA611F472EA From: Shreeya Patel To: krisman@collabora.com, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Cc: kernel@collabora.com, gustavo.padovan@collabora.com, andre.almeida@collabora.com, Shreeya Patel Subject: [PATCH 0/3] Make UTF-8 encoding loadable Date: Sun, 14 Mar 2021 04:42:10 +0530 Message-Id: <20210313231214.383576-1-shreeya.patel@collabora.com> X-Mailer: git-send-email 2.30.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org utf8data.h_shipped has a large database table which is an auto-generated decodification trie for the unicode normalization functions and it is not necessary to carry this large table in the kernel. Goal is to make UTF-8 encoding loadable by converting it into a module and adding a layer between the filesystems and the utf8 module which will load the module whenever any filesystem that needs unicode is mounted. Unicode is the subsystem and utf8 is a charachter encoding for the subsystem, hence first two patches in the series are renaming functions and file name to unicode for better understanding the difference between UTF-8 module and unicode layer. Last patch in the series adds the layer and utf8 module. Shreeya Patel (3): fs: unicode: Rename function names from utf8 to unicode fs: unicode: Rename utf8-core file to unicode-core fs: unicode: Add utf8 module and a unicode layer fs/ext4/hash.c | 2 +- fs/ext4/namei.c | 12 +- fs/ext4/super.c | 6 +- fs/f2fs/dir.c | 12 +- fs/f2fs/super.c | 6 +- fs/libfs.c | 6 +- fs/unicode/Kconfig | 7 +- fs/unicode/Makefile | 5 +- fs/unicode/unicode-core.c | 112 +++++++++++++++++ fs/unicode/utf8-core.c | 248 ++++++++++--------------------------- fs/unicode/utf8-selftest.c | 8 +- fs/unicode/utf8mod.c | 246 ++++++++++++++++++++++++++++++++++++ include/linux/unicode.h | 52 +++++--- 13 files changed, 492 insertions(+), 230 deletions(-) create mode 100644 fs/unicode/unicode-core.c create mode 100644 fs/unicode/utf8mod.c -- 2.30.1