sysfs: Implement sysfs_rename_link
authorEric W. Biederman <ebiederm@xmission.com>
Sat, 13 Feb 2010 03:22:25 +0000 (19:22 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 8 Mar 2010 01:04:52 +0000 (17:04 -0800)
commit7cb32942d91a501b2df944928ccc9e6590ab237b
tree7c6ff2a82705d7dda8a566702f3bab981d03bf54
parent19c38b632d4554329986021fd66bdea468cf452c
sysfs: Implement sysfs_rename_link

Because of rename ordering problems we occassionally give false
warnings about invalid sysfs operations.  So using sysfs_rename
create a sysfs_rename_link function that doesn't need strange
workarounds.

Cc: Benjamin Thery <benjamin.thery@bull.net>
Cc: Daniel Lezcano <dlezcano@fr.ibm.com>
Acked-by: Serge Hallyn <serue@us.ibm.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Eric W. Biederman <ebiederm@aristanetworks.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/sysfs/symlink.c
include/linux/sysfs.h