2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-28 15:13:55 +08:00
linux-next/fs/sysfs
Stephen Hemminger 0599ad53fe sysfs: remove error messages for -EEXIST case
It is possible that the entry in sysfs already exists, one case of this is
when a network device is renamed to bonding_masters. Anyway, in this case
the proper error path is for device_rename to return an error code, not to
generate bogus backtrace and errors.

Also, to avoid possible races, the create link should be done before the
remove link. This makes a device rename atomic operation like other renames.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
2008-05-14 22:34:16 -07:00
..
bin.c sysfs: add copyrights 2007-10-12 14:51:12 -07:00
dir.c sysfs: remove error messages for -EEXIST case 2008-05-14 22:34:16 -07:00
file.c fs: replace remaining __FUNCTION__ occurrences 2008-04-30 08:29:54 -07:00
group.c [SCSI] sysfs: make group is_valid return a mode_t 2008-04-22 15:16:31 -05:00
inode.c sysfs: Disallow truncation of files in sysfs 2008-04-30 16:52:46 -07:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mount.c fs: replace remaining __FUNCTION__ occurrences 2008-04-30 08:29:54 -07:00
symlink.c sysfs: Allow removal of symlinks in the sysfs root 2008-04-18 08:56:10 -07:00
sysfs.h [SCSI] sysfs: make group is_valid return a mode_t 2008-04-22 15:16:31 -05:00