sysfs: Rewrite sysfs_move_dir in terms of sysfs dirents
authorEric W. Biederman <ebiederm@xmission.com>
Mon, 20 Aug 2007 12:36:31 +0000 (21:36 +0900)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 12 Oct 2007 21:51:08 +0000 (14:51 -0700)
commit45aaae9c51d768d5a8fd53fb372b1eb714f37691
tree0735356cf38a950404bcea49d44ac5610306e9eb
parent9918f9a4817cb6241c727b434d5f8ec5564198de
sysfs: Rewrite sysfs_move_dir in terms of sysfs dirents

This patch rewrites sysfs_move_dir to perform it's checks
as much as possible on the underlying sysfs_dirents instead
of the contents of the dcache, making sysfs_move_dir
more like the rest of the sysfs directory modification
code.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Tejun Heo <htejun@gmail.com>
Cc: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/sysfs/dir.c