]> err.no Git - linux-2.6/commit
sysfs: simplify sysfs_rename_dir()
authorTejun Heo <htejun@gmail.com>
Thu, 2 Aug 2007 12:38:02 +0000 (21:38 +0900)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 12 Oct 2007 21:51:03 +0000 (14:51 -0700)
commitff869de7bf5e76adffebd3a176c1c73bca7eddb7
tree547e0a58953896eb897cdd2bf5eb89cfdfff450a
parenta7a0475497f9018e2e28cd421ee467d2ad68643e
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>
fs/sysfs/dir.c