From patchwork Mon Dec 26 14:42:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Pali_Roh=C3=A1r?= X-Patchwork-Id: 3310 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp948042wrt; Mon, 26 Dec 2022 06:54:39 -0800 (PST) X-Google-Smtp-Source: AMrXdXsOat1iDlnrrDDmvtrUbGhYXT7MxniVOqBoE09mguA5gSWTw+whXzmodArI/NasvFy3YVoG X-Received: by 2002:a50:ff0f:0:b0:47f:dcb5:cff7 with SMTP id a15-20020a50ff0f000000b0047fdcb5cff7mr14659157edu.18.1672066479080; Mon, 26 Dec 2022 06:54:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672066479; cv=none; d=google.com; s=arc-20160816; b=pRGVx5cZQIcGx5uRFeh24+1EGKxPNgCg0WPWMAgO5R9RQ3LEqzwZLZw8SrWMOxMoG7 QUkSe45OsMiCWX+7BbcbHv/Lxyx9M2vszDWOYKkhsRfxOxLvxnaXEWdHMO6UvHk6IAik 0XEg7YOaIxCoySlvtJsoeogbGpokdlKfo34FPdBPVPJvr5j0kDsqBNQudF8MPz5kfFGj /MmgpFGD83TrNJEXkB/dTGe6Ox3IhIHJ+nChTjhymsyvETWqrDYoc40YT8hGWcZLDGEl ltx68lDHViZfRACQ5VOK/PbIBnyhNfxLaOkXif2t8jDf7KDYsqPZiSXr/bkWAVGcprl2 VA5w== 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:to:from:dkim-signature; bh=py/hqC5AqhmIJHhOifjZ8ce9egMYVLAa5TzmEUDFPhQ=; b=lyK+/5kxiVyp//l4xRyemJPH17Cjn5iJQU5JWhnN/MR91UygWXDVfOeiI83Db16Dde VefToS7cPE9zznVWqBVnKJBrlS5Ed/X+20pFV1xVuEj8XDAn+KJGkqrKHUJUwtAkGReZ PXcUGBfDD40eAdEU9gfutbtJLmjTc18aYH4WwY5XUdI3Nl0/Jgyr0LEhkbnd8zIxTD8D xKQnLDBMa7iGaVtxly8sCG4w1jf3Y9//Ps8rxDnLP9mL2n3ZADryfJEQHpWMy+GECOWb xpOXmf3s1FKmQ3yBw36DvyfAZETS2cSZAxLuhTO9AsVuDndlPCd9/bWcUvywFdw5mDDS fcdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KfPuiBmH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m17-20020a056402511100b004687eebac58si8699685edd.458.2022.12.26.06.54.15; Mon, 26 Dec 2022 06:54:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KfPuiBmH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232134AbiLZOtB (ORCPT + 99 others); Mon, 26 Dec 2022 09:49:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53026 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232091AbiLZOs7 (ORCPT ); Mon, 26 Dec 2022 09:48:59 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75DB8113A; Mon, 26 Dec 2022 06:48:58 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 11D4260EA3; Mon, 26 Dec 2022 14:48:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4A06BC433D2; Mon, 26 Dec 2022 14:48:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1672066137; bh=km72hStlCyvSVnDwcaySpzGtg6S8p8geBbOhyy/FiPk=; h=From:To:Subject:Date:From; b=KfPuiBmHHkNvAjThtDoz60+nQQey6KhN8feVSUQltSnkkwlPYFGf8AzkcIvCClnce 9ESRtTVZFerzaTFzhg6UBZLDdRxPCCjDjXrfi5okNy0FHH6J81wW1D1pteKrzitVb7 VPC1jrcZtNbUTea3kU+JsYB/MHnXD3Ihk7xYPWFi6u+LUSonv4SrZue5zMeY/PQWnT 1uWnCdn7Wtvhb0ZtdZCx67/haESWKlz/R2AwFOswD93h7TYIoFJc5n3gXIKz7RawBs yRlf2o9oCarhs/O2OMG5w9Yzum88KL5VIG4wsltWd7tyNqSFKV547xZhdAfCzQTQ1i zVg49GRuHw84g== Received: by pali.im (Postfix) id 3778B9D7; Mon, 26 Dec 2022 15:48:54 +0100 (CET) From: =?utf-8?q?Pali_Roh=C3=A1r?= To: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, OGAWA Hirofumi , Jan Kara , Alexander Viro Subject: [RFC PATCH 0/3] fs: nls: Simplification of ASCII and ISO-8859-1 Date: Mon, 26 Dec 2022 15:42:58 +0100 Message-Id: <20221226144301.16382-1-pali@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1753288780367180466?= X-GMAIL-MSGID: =?utf-8?q?1753288780367180466?= This is RFC patch series which simplify ASCII and ISO-8859-1 tables. I'm not sure what is the direction of the nls code and duplicated default/iso88591 tables, so I'm sending this series as RFC. Pali Rohár (3): nls: Simplify ASCII implementation nls: Simplify ISO-8859-1 implementation nls: Replace default nls table by correct iso8859-1 table fs/nls/Kconfig | 21 ++-- fs/nls/Makefile | 1 - fs/nls/nls_ascii.c | 85 ++------------ fs/nls/nls_base.c | 187 +++++++----------------------- fs/nls/nls_iso8859-1.c | 257 ----------------------------------------- 5 files changed, 57 insertions(+), 494 deletions(-) delete mode 100644 fs/nls/nls_iso8859-1.c