linux/fs/sysfs
Tejun Heo 23dc279950 sysfs: make sysfs_add_one() automatically check for duplicate entry
Make sysfs_add_one() check for duplicate entry and return -EEXIST if
such entry exists.  This simplifies node addition code a bit.

This patch doesn't introduce any noticeable behavior change.

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:04 -07:00
..
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
bin.c sysfs: cleanup semaphore.h 2007-10-12 14:51:03 -07:00
dir.c sysfs: make sysfs_add_one() automatically check for duplicate entry 2007-10-12 14:51:04 -07:00
file.c sysfs: make sysfs_add_one() automatically check for duplicate entry 2007-10-12 14:51:04 -07:00
group.c sysfs: Remove first pass at shadow directory support 2007-10-12 14:51:03 -07:00
inode.c sysfs: make sysfs_add/remove_one() call link/unlink_sibling() implictly 2007-10-12 14:51:03 -07:00
mount.c sysfs: Remove first pass at shadow directory support 2007-10-12 14:51:03 -07:00
symlink.c sysfs: make sysfs_add_one() automatically check for duplicate entry 2007-10-12 14:51:04 -07:00
sysfs.h sysfs: make sysfs_add_one() automatically check for duplicate entry 2007-10-12 14:51:04 -07:00