summaryrefslogtreecommitdiffstats
path: root/fs/sysfs/inode.c
diff options
context:
space:
mode:
authorTejun Heo <htejun@gmail.com>2007-08-02 14:38:03 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2007-10-12 23:51:04 +0200
commit23dc279950a056c33a14d09cf759f5173d41abd9 (patch)
tree852f8cc24c24988717dbae8f98da999ff27755fa /fs/sysfs/inode.c
parentsysfs: make sysfs_add/remove_one() call link/unlink_sibling() implictly (diff)
downloadlinux-23dc279950a056c33a14d09cf759f5173d41abd9.tar.xz
linux-23dc279950a056c33a14d09cf759f5173d41abd9.zip
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>
Diffstat (limited to 'fs/sysfs/inode.c')
0 files changed, 0 insertions, 0 deletions