From: Eric W. Biederman Date: Mon, 20 Aug 2007 12:36:31 +0000 (+0900) Subject: sysfs: Rewrite rename in terms of sysfs dirents X-Git-Tag: v2.6.24-rc1~1394^2~26 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9918f9a4817cb6241c727b434d5f8ec5564198de;p=pandora-kernel.git sysfs: Rewrite rename in terms of sysfs dirents This patch rewrites sysfs_rename_dir to perform it's checks as much as possible on the underlying sysfs_dirents instead of the contents of the dcache. It turns out that this version is a little simpler, and a little more like the rest of the sysfs directory modification code. tj: fixed double locking of sysfs_mutex Signed-off-by: Eric W. Biederman Signed-off-by: Tejun Heo Cc: Cornelia Huck Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed