tmpfs: Add flag FS_CASEFOLD_FL support for tmpfs dirs
authorAndré Almeida <andrealmeid@igalia.com>
Mon, 21 Oct 2024 16:37:23 +0000 (13:37 -0300)
committerChristian Brauner <brauner@kernel.org>
Mon, 28 Oct 2024 12:36:55 +0000 (13:36 +0100)
commit5cd9aecbc72c07e8b83e900078669a7d0bc5f98f
tree070f37b98337c28f80d3a3be0e0598a55514c656
parent58e55efd6c72cbc3e76423a1086f7b4d6c2ae9c2
tmpfs: Add flag FS_CASEFOLD_FL support for tmpfs dirs

Enable setting flag FS_CASEFOLD_FL for tmpfs directories, when tmpfs is
mounted with casefold support. A special check is need for this flag,
since it can't be set for non-empty directories.

Reviewed-by: Gabriel Krisman Bertazi <krisman@suse.de>
Reviewed-by: Gabriel Krisman Bertazi <gabriel@krisman.be>
Signed-off-by: André Almeida <andrealmeid@igalia.com>
Link: https://lore.kernel.org/r/20241021-tonyk-tmpfs-v8-7-f443d5814194@igalia.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
include/linux/shmem_fs.h
mm/shmem.c