• Daniel Rosenberg's avatar
    fs: Add standard casefolding support · c843843e
    Daniel Rosenberg authored
    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: default avatarDaniel Rosenberg <drosen@google.com>
    Reviewed-by: default avatarEric Biggers <ebiggers@google.com>
    Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
    c843843e
libfs.c 37.2 KB