From: Eric W. Biederman Date: Sat, 21 Nov 2009 00:08:57 +0000 (-0800) Subject: sysfs: Factor out sysfs_rename from sysfs_rename_dir and sysfs_move_dir X-Git-Tag: v2.6.33-rc1~314^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca1bab38195d66bdf42320a99cc7359434a271d3;p=pandora-kernel.git sysfs: Factor out sysfs_rename from sysfs_rename_dir and sysfs_move_dir These two functions do 90% of the same work and it doesn't significantly obfuscate the function to allow both the parent dir and the name to change at the same time. So merge them together to simplify maintenance, and increase testing. Acked-by: Tejun Heo Acked-by: Serge Hallyn Signed-off-by: Eric W. Biederman Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed