linux/fs/sysfs
Tejun Heo ff869de7bf 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 <htejun@gmail.com>
Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2007-10-12 14:51:03 -07:00
..
bin.c sysfs: cleanup semaphore.h 2007-10-12 14:51:03 -07:00
dir.c sysfs: simplify sysfs_rename_dir() 2007-10-12 14:51:03 -07:00
file.c sysfs/file.c - use mutex instead of semaphore 2007-10-12 14:51:03 -07:00
group.c sysfs: Remove first pass at shadow directory support 2007-10-12 14:51:03 -07:00
inode.c sysfs: Remove first pass at shadow directory support 2007-10-12 14:51:03 -07:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mount.c sysfs: Remove first pass at shadow directory support 2007-10-12 14:51:03 -07:00
symlink.c sysfs: cleanup semaphore.h 2007-10-12 14:51:03 -07:00
sysfs.h sysfs: Remove first pass at shadow directory support 2007-10-12 14:51:03 -07:00