From: Tejun Heo Date: Thu, 2 Aug 2007 12:38:02 +0000 (+0900) Subject: sysfs: simplify sysfs_rename_dir() X-Git-Tag: v2.6.24-rc1~1394^2~53 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff869de7bf5e76adffebd3a176c1c73bca7eddb7;p=pandora-kernel.git sysfs: simplify sysfs_rename_dir() With the shadow directories gone, sysfs_rename_dir() can be simplified. * parent doesn't need to be grabbed separately. Just access old_dentry->d_parent. * parent sd can never change. Remove code to move under the new parent. * Massage comments a bit. Signed-off-by: Tejun Heo Acked-by: Cornelia Huck Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed