Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp8758086rwp; Wed, 19 Jul 2023 15:06:17 -0700 (PDT) X-Google-Smtp-Source: APBJJlFlJFNQdFB7Ze3YdV6ZpLoQyC7AdYIqIYkZA69UafOhgEsUx9kSyGSb7PGIkt9mJpIigtND X-Received: by 2002:ac2:530e:0:b0:4fd:8976:5fc9 with SMTP id c14-20020ac2530e000000b004fd89765fc9mr785865lfh.23.1689804376910; Wed, 19 Jul 2023 15:06:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689804376; cv=none; d=google.com; s=arc-20160816; b=I7P2pc/fRWMcXY6HVkKVJqavSfdHEhdhPQCZA2qhixkSvS0pX0AzQJu7Y7xXCXw1qk BWe5EPNQyJmbaB7cywUrnfZOawjsj9yHlLscXqi6++zrvxTxDQD3am7maLzmpjfFORI7 vKdaaL84JovDhi/6vjg7/A53t3NK3QqkbhUQ6bo70im1c8QliAdGixOdqsrJOA/TalhK UysD/VLd5oZZqirQLXQ9WAAZIWHvaVDsYVQG3A/EugReVnan3J/bbyfVX6lnrQiFGayE 3fqlBlYbqXPVBD9vmNp/iDFr7d5aeVzR3fDBrJTYs4n0jkEk4Se/xKEFJr2rXTiMDSZF nvug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=tQUQ8g2wvWfKqdq3ImlkFFwsTm+NbJDjAHJb9sGdEtY=; fh=u0qweGt9UBUcdYVfPwHtlpAUmJ3yV022T6q0onp9SAQ=; b=Jm5H4rIEqjQgqu/3Q+FdZRtLAxupWc1C26QXijY9Ldn9AbiGYTWf/LMH7i54Q6yvd4 91CLJxuK7bvQ+GHnFKMUnN8Z4pdN3AWwzH/vEczx90oQT5BL0OmFaGLFgOFx0dUFl/jW //IgS7sL10+kZ9f+24bC/rub9Q1KqHwsWP8pbyJhwnZ2JIz3fTWXkVuFUoG63BIEEQv7 QTnIBI/62k5KRXT+4UTVqpUUTDlUATxUw8mNJoXxKM0xSnRLJhq7B9ZfT09Vuh8LUGK7 FriprcO3rXvaSSE5X65DNEg3EsLUeZED+i06O8v6D1X+G5FjKYJyTimtr+xDPparVliS TW7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@treblig.org header.s=bytemarkmx header.b=dhAPLaMa; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r4-20020aa7cb84000000b0051de510240esi3715838edt.554.2023.07.19.15.05.45; Wed, 19 Jul 2023 15:06:16 -0700 (PDT) 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=fail header.i=@treblig.org header.s=bytemarkmx header.b=dhAPLaMa; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229685AbjGSV6r (ORCPT + 99 others); Wed, 19 Jul 2023 17:58:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229480AbjGSV6q (ORCPT ); Wed, 19 Jul 2023 17:58:46 -0400 Received: from mx.treblig.org (unknown [IPv6:2a00:1098:5b::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C3AD1FD9; Wed, 19 Jul 2023 14:58:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=treblig.org ; s=bytemarkmx; h=In-Reply-To:Content-Transfer-Encoding:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=tQUQ8g2wvWfKqdq3ImlkFFwsTm+NbJDjAHJb9sGdEtY=; b=dhAPLaMaI6nD2w8TZ4h6p+i4KR 8KK1CUw3yQncFjznKaVcz8gqM70x0vdh4L+jOFcgju+lkxzeb/Rksunzyw3G36/J/KXAlbgkEqdU4 m2Qyo07acB1+rFDB3BQIfQYQAbrnQbEuz5EptkUGStU3rq438befzjUA4KiOd2aygzL/8KnpZOOys m0/cptotXKTSZN6jc3XsNEt4pjNhBgJY0GAE9+PgrvVSx8QKmVTp1dObkNrnN4mKJ1bV+HpeyH8mN 9ckTMIv3aOEm2xipzPnQ/q/zEVtDpZDzcWuKa4bBN1M1cXdZA2uPBf0MmF6BAByOhb3vH3NKYBwG8 apHt2w6A==; Received: from dg by mx.treblig.org with local (Exim 4.94.2) (envelope-from ) id 1qMFBl-002EwK-41; Wed, 19 Jul 2023 21:58:29 +0000 Date: Wed, 19 Jul 2023 21:58:29 +0000 From: "Dr. David Alan Gilbert" To: Steve French Cc: linkinjeon@kernel.org, tom@talpey.com, dave.kleikamp@oracle.com, shaggy@kernel.org, linux-cifs@vger.kernel.org, krisman@collabora.com, jfs-discussion@lists.sourceforge.net, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 0/4] dedupe smb unicode files Message-ID: References: <20230628232417.120844-1-linux@treblig.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Chocolate: 70 percent or better cocoa solids preferably X-Operating-System: Linux/5.10.0-23-amd64 (x86_64) X-Uptime: 21:57:15 up 13 days, 7:28, 1 user, load average: 0.09, 0.02, 0.00 User-Agent: Mutt/2.0.5 (2021-01-21) X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED,RDNS_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=no 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 * Steve French (smfrench@gmail.com) wrote: > The related question is which tree to send it from, if no problems > reported (presumably mine since it mostly affect cifs.ko and ksmbd.ko, > and because there hasn't been activity in fs/nls for years) That was my hope, given that ~half of the patches are directly on that code, and it's the only very active tree this touches as far as I can tell. > On Wed, Jul 19, 2023 at 12:56 PM Steve French wrote: > > > > No objections to this on my part. If Shaggy is ok with the JFS > > change, we could target it for 6.6-rc1 if it tests out ok Thanks. Dave > > On Wed, Jul 12, 2023 at 6:28 PM Dr. David Alan Gilbert wrote: > > > > > > * linux@treblig.org (linux@treblig.org) wrote: > > > > From: "Dr. David Alan Gilbert" > > > > > > > > The smb client and server code have (mostly) duplicated code > > > > for unicode manipulation, in particular upper case handling. > > > > > > > > Flatten this lot into shared code. > > > > > > Gentle two week ping on this please. > > > > > > Dave > > > > > > (Apologies to the 3 of you who already got a copy of this ping, > > > recent due to a missing header ',' ) > > > > > > > There's some code that's slightly different between the two, and > > > > I've not attempted to share that - this should be strictly a no > > > > behaviour change set. > > > > > > > > In addition, the same tables and code are shared in jfs, however > > > > there's very little testing available for the unicode in there, > > > > so just share the raw data tables. > > > > > > > > I suspect there's more UCS-2 code that can be shared, in the NLS code > > > > and in the UCS-2 code used by the EFI interfaces. > > > > > > > > Lightly tested with a module and a monolithic build, and just mounting > > > > itself. > > > > > > > > This dupe was found using PMD: > > > > https://pmd.github.io/pmd/pmd_userdocs_cpd.html > > > > > > > > Dave > > > > > > > > Version 2 > > > > Moved the shared code to fs/nls after v1 feedback. > > > > Renamed shared tables from Smb to Nls prefix > > > > Move UniStrcat as well > > > > Share the JFS tables > > > > > > > > Dr. David Alan Gilbert (4): > > > > fs/smb: Remove unicode 'lower' tables > > > > fs/smb: Swing unicode common code from smb->NLS > > > > fs/smb/client: Use common code in client > > > > fs/jfs: Use common ucs2 upper case table > > > > > > > > fs/jfs/Kconfig | 1 + > > > > fs/jfs/Makefile | 2 +- > > > > fs/jfs/jfs_unicode.h | 17 +- > > > > fs/jfs/jfs_uniupr.c | 121 ------------- > > > > fs/nls/Kconfig | 8 + > > > > fs/nls/Makefile | 1 + > > > > fs/nls/nls_ucs2_data.h | 15 ++ > > > > fs/nls/nls_ucs2_utils.c | 144 +++++++++++++++ > > > > fs/nls/nls_ucs2_utils.h | 285 ++++++++++++++++++++++++++++++ > > > > fs/smb/client/Kconfig | 1 + > > > > fs/smb/client/cifs_unicode.c | 1 - > > > > fs/smb/client/cifs_unicode.h | 330 +---------------------------------- > > > > fs/smb/client/cifs_uniupr.h | 239 ------------------------- > > > > fs/smb/server/Kconfig | 1 + > > > > fs/smb/server/unicode.c | 1 - > > > > fs/smb/server/unicode.h | 325 +--------------------------------- > > > > fs/smb/server/uniupr.h | 268 ---------------------------- > > > > 17 files changed, 467 insertions(+), 1293 deletions(-) > > > > delete mode 100644 fs/jfs/jfs_uniupr.c > > > > create mode 100644 fs/nls/nls_ucs2_data.h > > > > create mode 100644 fs/nls/nls_ucs2_utils.c > > > > create mode 100644 fs/nls/nls_ucs2_utils.h > > > > delete mode 100644 fs/smb/client/cifs_uniupr.h > > > > delete mode 100644 fs/smb/server/uniupr.h > > > > > > > > -- > > > > 2.41.0 > > > > > > > -- > > > -----Open up your eyes, open up your mind, open up your code ------- > > > / Dr. David Alan Gilbert | Running GNU/Linux | Happy \ > > > \ dave @ treblig.org | | In Hex / > > > \ _________________________|_____ http://www.treblig.org |_______/ > > > > > > > > -- > > Thanks, > > > > Steve > > > > -- > Thanks, > > Steve -- -----Open up your eyes, open up your mind, open up your code ------- / Dr. David Alan Gilbert | Running GNU/Linux | Happy \ \ dave @ treblig.org | | In Hex / \ _________________________|_____ http://www.treblig.org |_______/