aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorTejun Heo <htejun@gmail.com>2007-09-20 03:05:09 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2007-10-12 17:51:09 -0400
commit181b2e4be1603ce3ccace8322047a548f29f4b20 (patch)
tree5cfc9844ccacd8c8b378e9e47d2c8f7625b7bff3 /fs
parent5c3e8964ce87477a12e3e9edc3742156a3929a74 (diff)
sysfs: fix comments of sysfs_add/remove_one()
sysfs_add/remove_one() now link and unlink the target dirent into and from the children list. Update comments accordingly. 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')
-rw-r--r--fs/sysfs/dir.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/fs/sysfs/dir.c b/fs/sysfs/dir.c
index 5d95aa8e23c..fc615eed67d 100644
--- a/fs/sysfs/dir.c
+++ b/fs/sysfs/dir.c
@@ -410,10 +410,8 @@ void sysfs_addrm_start(struct sysfs_addrm_cxt *acxt,
410 * @sd: sysfs_dirent to be added 410 * @sd: sysfs_dirent to be added
411 * 411 *
412 * Get @acxt->parent_sd and set sd->s_parent to it and increment 412 * Get @acxt->parent_sd and set sd->s_parent to it and increment
413 * nlink of parent inode if @sd is a directory. @sd is NOT 413 * nlink of parent inode if @sd is a directory and link into the
414 * linked into the children list of the parent. The caller 414 * children list of the parent.
415 * should invoke sysfs_link_sibling() after this function
416 * completes if @sd needs to be on the children list.
417 * 415 *
418 * This function should be called between calls to 416 * This function should be called between calls to
419 * sysfs_addrm_start() and sysfs_addrm_finish() and should be 417 * sysfs_addrm_start() and sysfs_addrm_finish() and should be
@@ -453,9 +451,7 @@ int sysfs_add_one(struct sysfs_addrm_cxt *acxt, struct sysfs_dirent *sd)
453 * @sd: sysfs_dirent to be added 451 * @sd: sysfs_dirent to be added
454 * 452 *
455 * Mark @sd removed and drop nlink of parent inode if @sd is a 453 * Mark @sd removed and drop nlink of parent inode if @sd is a
456 * directory. @sd is NOT unlinked from the children list of the 454 * directory. @sd is unlinked from the children list.
457 * parent. The caller is repsonsible for removing @sd from the
458 * children list before calling this function.
459 * 455 *
460 * This function should be called between calls to 456 * This function should be called between calls to
461 * sysfs_addrm_start() and sysfs_addrm_finish() and should be 457 * sysfs_addrm_start() and sysfs_addrm_finish() and should be