]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
tmpfs: Initialize sysfs during tmpfs init
authorAndré Almeida <andrealmeid@igalia.com>
Fri, 1 Nov 2024 16:42:51 +0000 (13:42 -0300)
committerChristian Brauner <brauner@kernel.org>
Wed, 6 Nov 2024 10:22:21 +0000 (11:22 +0100)
commit65c481f30896750f659345b915b669f78a3c0289
tree3a769db0fe76530c30475bc51599ab3e6a6f66c0
parent18d2f10f6284f5bb9c03a759044121c71e5b3b4c
tmpfs: Initialize sysfs during tmpfs init

Instead of using fs_initcall(), initialize sysfs with the rest of the
filesystem. This is the right way to do it because otherwise any error
during tmpfs_sysfs_init() would get silently ignored. It's also useful
if tmpfs' sysfs ever need to display runtime information.

Signed-off-by: André Almeida <andrealmeid@igalia.com>
Link: https://lore.kernel.org/r/20241101164251.327884-4-andrealmeid@igalia.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
mm/shmem.c