From: "Dr. David Alan Gilbert" <linux@treblig.org>
To: Steve French <smfrench@gmail.com>
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
Date: Wed, 19 Jul 2023 21:58:29 +0000 [thread overview]
Message-ID: <ZLhchajZaWEVM6D7@gallifrey> (raw)
In-Reply-To: <CAH2r5mss4RsEF1b6gJo8LFWsN9-YBSEP6GV7axsNhX7ihj5CqA@mail.gmail.com>
* 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 <smfrench@gmail.com> 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 <dave@treblig.org> wrote:
> > >
> > > * linux@treblig.org (linux@treblig.org) wrote:
> > > > From: "Dr. David Alan Gilbert" <linux@treblig.org>
> > > >
> > > > 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 |_______/
next prev parent reply other threads:[~2023-07-19 21:58 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-28 23:24 [PATCH v2 0/4] dedupe smb unicode files linux
2023-06-28 23:24 ` [PATCH v2 1/4] fs/smb: Remove unicode 'lower' tables linux
2023-06-28 23:24 ` [PATCH v2 2/4] fs/smb: Swing unicode common code from smb->NLS linux
2023-06-28 23:24 ` [PATCH v2 3/4] fs/smb/client: Use common code in client linux
2023-06-28 23:24 ` [PATCH v2 4/4] fs/jfs: Use common ucs2 upper case table linux
2023-07-12 23:17 ` [PATCH v2 0/4] dedupe smb unicode files Dr. David Alan Gilbert
2023-07-19 17:56 ` Steve French
2023-07-19 18:02 ` Steve French
2023-07-19 21:58 ` Dr. David Alan Gilbert [this message]
2023-07-19 22:06 ` Dave Kleikamp
2023-07-20 14:25 ` Tom Talpey
2023-07-20 23:57 ` Dr. David Alan Gilbert
2023-07-21 13:19 ` Tom Talpey
2023-07-21 13:25 ` Dr. David Alan Gilbert
2023-07-21 20:58 ` Dr. David Alan Gilbert
2023-07-21 21:06 ` Paulo Alcantara
2023-07-21 21:12 ` Tom Talpey
2023-07-21 21:12 ` Dr. David Alan Gilbert
2023-08-13 0:57 ` Dr. David Alan Gilbert
2023-08-13 3:11 ` Steve French
2023-08-27 23:14 ` Steve French
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZLhchajZaWEVM6D7@gallifrey \
--to=linux@treblig.org \
--cc=dave.kleikamp@oracle.com \
--cc=jfs-discussion@lists.sourceforge.net \
--cc=krisman@collabora.com \
--cc=linkinjeon@kernel.org \
--cc=linux-cifs@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=shaggy@kernel.org \
--cc=smfrench@gmail.com \
--cc=tom@talpey.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.