Commit b1494e6b authored by Al Viro's avatar Al Viro
Browse files

configfs, securityfs: kill_litter_super() not needed



These are guaranteed to be empty by the time they are shut down;
both are single-instance and there is an internal mount maintained
for as long as there is any contents.

Both have that internal mount pinned by every object in root.

In other words, kill_litter_super() boils down to kill_anon_super()
for those.

Reviewed-by: default avatarJoel Becker <jlbec@evilplan.org>
Acked-by: Paul Moore <paul@paul-moore> (LSM)
Acked-by: Andreas Hindborg <a.hindborg@kernel.org> (configfs)
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 23cbc7a7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -116,7 +116,7 @@ static struct file_system_type configfs_fs_type = {
	.owner		= THIS_MODULE,
	.name		= "configfs",
	.init_fs_context = configfs_init_fs_context,
	.kill_sb	= kill_litter_super,
	.kill_sb	= kill_anon_super,
};
MODULE_ALIAS_FS("configfs");

+1 −1
Original line number Diff line number Diff line
@@ -70,7 +70,7 @@ static struct file_system_type fs_type = {
	.owner =	THIS_MODULE,
	.name =		"securityfs",
	.init_fs_context = securityfs_init_fs_context,
	.kill_sb =	kill_litter_super,
	.kill_sb =	kill_anon_super,
};

/**