From: Eric W. Biederman Date: Thu, 11 Feb 2010 23:20:00 +0000 (-0800) Subject: sysfs: Only take active references on attributes. X-Git-Tag: v2.6.34-rc1~1^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a2db6842873c8e5a70652f278d469128cb52db70;p=pandora-kernel.git sysfs: Only take active references on attributes. If we exclude directories and symlinks from the set of sysfs dirents where we need active references we are left with sysfs attributes (binary or not). - Tweak sysfs_deactivate to only do something on attributes - Move lockdep initialization into sysfs_file_add_mode to limit it to just attributes. Signed-off-by: Eric W. Biederman Acked-by: WANG Cong Cc: Tejun Heo Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed