kobject: Cleanup kobject_rename and !CONFIG_SYSFS
authorEric W. Biederman <ebiederm@xmission.com>
Fri, 4 Jul 2008 01:05:28 +0000 (18:05 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 16 Oct 2008 16:24:52 +0000 (09:24 -0700)
commit0b4a4fea253e1296222603ccc55430ed7cd9413a
tree5ce1810393a0f3a48ac208e0dbf994b63a481f18
parent030c1d2bfcc2187650fb975456ca0b61a5bb77f4
kobject: Cleanup kobject_rename and !CONFIG_SYSFS

It finally dawned on me what the clean fix to sysfs_rename_dir
calling kobject_set_name is.  Move the work into kobject_rename
where it belongs.  The callers serialize us anyway so this is
safe.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/sysfs/dir.c
include/linux/sysfs.h
lib/kobject.c