tmpfs: Expose filesystem features via sysfs
authorAndré Almeida <andrealmeid@igalia.com>
Mon, 21 Oct 2024 16:37:24 +0000 (13:37 -0300)
committerChristian Brauner <brauner@kernel.org>
Mon, 28 Oct 2024 12:36:55 +0000 (13:36 +0100)
commit5132f08bd3325602f4de01ccd59537c7f91e1f89
treebed9cf4cd17dd8bbd52d17be1fa8dd1e9d09e709
parent5cd9aecbc72c07e8b83e900078669a7d0bc5f98f
tmpfs: Expose filesystem features via sysfs

Expose filesystem features through sysfs, so userspace can query if
tmpfs support casefold.

This follows the same setup as defined by ext4 and f2fs to expose
casefold support to userspace.

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