Hey Linus, /* Summary */ This adds case-insensitive support for tmpfs. The work contained in here adds support for case-insensitive file names lookups in tmpfs. The main difference from other casefold filesystems is that tmpfs has no information on disk, just on RAM, so we can't use mkfs to create a case-insensitive tmpfs. For this implementation, there's a mount option for casefolding. The rest of the patchset follows a similar approach as ext4 and f2fs. The use case for this feature is similar to the use case for ext4, to better support compatibility layers (like Wine), particularly in combination with sandboxing/container tools (like Flatpak). Those containerization tools can share a subset of the host filesystem with an application. In the container, the root directory and any parent directories required for a shared directory are on tmpfs, with the shared directories bind-mounted into the container's view of the filesystem. If the host filesystem is using case-insensitive directories, then the application can do lookups inside those directories in a case-insensitive way, without this needing to be implemented in user-space. However, if the host is only sharing a subset of a case-insensitive directory with the application, then the parent directories of the mount point will be part of the container's root tmpfs. When the application tries to do case-insensitive lookups of those parent directories on a case-sensitive tmpfs, the lookup will fail. /* Testing */ gcc version 14.2.0 (Debian 14.2.0-6) Debian clang version 16.0.6 (27+b1) All patches are based on v6.12-rc4 and have been sitting in linux-next. No build failures or warnings were observed. /* Conflicts */ Merge conflicts with mainline ============================= No known conflicts. Merge conflicts with other trees ================================ No known conflicts. This will have a minor merge conflict with the vfs-6.13.file pull request I sent as: https://lore.kernel.org/r/20241115-vfs-file-f2297d7c58ee@brauner The resolution for the conflict should look like this: diff --cc include/linux/fs.h index 3e53ba079f17,001d580af862..eae7ce884030 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@@ -45,7 -45,7 +45,8 @@@ #include <linux/slab.h> #include <linux/maple_tree.h> #include <linux/rw_hint.h> +#include <linux/file_ref.h> + #include <linux/unicode.h> The following changes since commit 42f7652d3eb527d03665b09edac47f85fb600924: Linux 6.12-rc4 (2024-10-20 15:19:38 -0700) are available in the Git repository at: git@xxxxxxxxxxxxxxxxxxx:pub/scm/linux/kernel/git/vfs/vfs tags/vfs-6.13.tmpfs for you to fetch changes up to 552b15103db404c7971d4958e6e28d4e7123a325: Merge patch series "tmpfs: Casefold fixes" (2024-11-06 11:22:30 +0100) Please consider pulling these changes from the signed vfs-6.13.tmpfs tag. Thanks! Christian ---------------------------------------------------------------- vfs-6.13.tmpfs ---------------------------------------------------------------- André Almeida (12): libfs: Create the helper function generic_ci_validate_strict_name() ext4: Use generic_ci_validate_strict_name helper unicode: Export latest available UTF-8 version number unicode: Recreate utf8_parse_version() libfs: Export generic_ci_ dentry functions tmpfs: Add casefold lookup support tmpfs: Add flag FS_CASEFOLD_FL support for tmpfs dirs tmpfs: Expose filesystem features via sysfs docs: tmpfs: Add casefold options libfs: Fix kernel-doc warning in generic_ci_validate_strict_name tmpfs: Fix type for sysfs' casefold attribute tmpfs: Initialize sysfs during tmpfs init Christian Brauner (2): Merge patch series "tmpfs: Add case-insensitive support for tmpfs" Merge patch series "tmpfs: Casefold fixes" Documentation/filesystems/tmpfs.rst | 24 ++++ fs/ext4/namei.c | 5 +- fs/libfs.c | 12 +- fs/unicode/utf8-core.c | 26 ++++ fs/unicode/utf8-selftest.c | 3 - include/linux/fs.h | 49 +++++++ include/linux/shmem_fs.h | 6 +- include/linux/unicode.h | 4 + mm/shmem.c | 265 ++++++++++++++++++++++++++++++++++-- 9 files changed, 371 insertions(+), 23 deletions(-)