diff options
| author | Paulo Alcantara <pc@manguebit.com> | 2025-04-01 01:13:49 -0300 |
|---|---|---|
| committer | Steve French <stfrench@microsoft.com> | 2025-04-07 01:08:27 -0500 |
| commit | 3d48316df903a48a533bb313e5da821a163738cd (patch) | |
| tree | dd79845c8866574c00667ffda329282ae40b77c0 /kernel/range.c | |
| parent | b365b9d404b7376c60c91cd079218bfef11b7822 (diff) | |
| download | linux-3d48316df903a48a533bb313e5da821a163738cd.tar.gz linux-3d48316df903a48a533bb313e5da821a163738cd.tar.bz2 linux-3d48316df903a48a533bb313e5da821a163738cd.zip | |
smb: client: optimize pathname checking
The default mapping for CIFS mounts (SFM) allows mapping backslash, so
fix it by mapping them to 0xf026 in UCS-2 and then allow files and
directories to be created with backslash in their names.
This will optimize cifs_check_name() as it won't need to check for
backslashes anymore when using default SFM mapping.
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202504021549.evbuYKS3-lkp@intel.com/
Signed-off-by: Paulo Alcantara (Red Hat) <pc@manguebit.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'kernel/range.c')
0 files changed, 0 insertions, 0 deletions
