]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit - fs/libfs.c
fs: Add standard casefolding support
authorDaniel Rosenberg <drosen@google.com>
Wed, 8 Jul 2020 09:12:35 +0000 (02:12 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 10 Sep 2020 21:03:31 +0000 (14:03 -0700)
commitc843843e714c8f17280d7db009412b1b1baf448b
tree598f8c20cfdda107eefed04806c9d0197b71bf06
parent3d7bfea8b8378277a25b42b28fe5a2a5ca76a7cf
fs: Add standard casefolding support

This adds general supporting functions for filesystems that use
utf8 casefolding. It provides standard dentry_operations and adds the
necessary structures in struct super_block to allow this standardization.

The new dentry operations are functionally equivalent to the existing
operations in ext4 and f2fs, apart from the use of utf8_casefold_hash to
avoid an allocation.

By providing a common implementation, all users can benefit from any
optimizations without needing to port over improvements.

Signed-off-by: Daniel Rosenberg <drosen@google.com>
Reviewed-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/libfs.c
include/linux/fs.h