[PATCH 3/6] sysfs: Add FS_GENERATED_CONTENT to filesystem flags

From: Nicolas Boichat
Date: Thu Feb 11 2021 - 23:46:30 EST


sysfs content is generated at runtime.

Signed-off-by: Nicolas Boichat <drinkcat@xxxxxxxxxxxx>
---

fs/sysfs/mount.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/sysfs/mount.c b/fs/sysfs/mount.c
index e747c135c1d1..7e367ae5edc1 100644
--- a/fs/sysfs/mount.c
+++ b/fs/sysfs/mount.c
@@ -91,7 +91,7 @@ static struct file_system_type sysfs_fs_type = {
.name = "sysfs",
.init_fs_context = sysfs_init_fs_context,
.kill_sb = sysfs_kill_sb,
- .fs_flags = FS_USERNS_MOUNT,
+ .fs_flags = FS_USERNS_MOUNT | FS_GENERATED_CONTENT,
};

int __init sysfs_init(void)
--
2.30.0.478.g8a0d178c01-goog