From: Eric W. Biederman Date: Mon, 20 Aug 2007 12:36:29 +0000 (+0900) Subject: sysfs: Use kill_anon_super X-Git-Tag: v2.6.24-rc1~1394^2~34 X-Git-Url: http://www.pilppa.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=0333cd8a3f4249fde2c50929a6eac35245fc685b;p=linux-2.6-omap-h63xx.git sysfs: Use kill_anon_super Since sysfs no longer stores fs directory information in the dcache on a permanent basis kill_litter_super it is inappropriate and actively wrong. It will decrement the count on all dentries left in the dcache before trying to free them. At the moment this is not biting us only because we never unmount sysfs. Signed-off-by: Eric W. Biederman Signed-off-by: Tejun Heo Cc: Cornelia Huck Signed-off-by: Greg Kroah-Hartman --- diff --git a/fs/sysfs/mount.c b/fs/sysfs/mount.c index 92f407fb126..ac7625631fc 100644 --- a/fs/sysfs/mount.c +++ b/fs/sysfs/mount.c @@ -71,7 +71,7 @@ static int sysfs_get_sb(struct file_system_type *fs_type, static struct file_system_type sysfs_fs_type = { .name = "sysfs", .get_sb = sysfs_get_sb, - .kill_sb = kill_litter_super, + .kill_sb = kill_anon_super, }; int __init sysfs_init(void)