Skip to content

Commit

Permalink
kernfs: remove outdated and confusing comment
Browse files Browse the repository at this point in the history
Grabbing the parent is not happening anymore since 2010 (e72ceb8
"sysfs: Remove sysfs_get/put_active_two"). Remove this confusing
comment.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Wolfram Sang authored and Greg Kroah-Hartman committed May 24, 2015
1 parent ec0ccc1 commit ba50150
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion fs/kernfs/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,6 @@ static unsigned int kernfs_fop_poll(struct file *filp, poll_table *wait)
struct kernfs_node *kn = filp->f_path.dentry->d_fsdata;
struct kernfs_open_node *on = kn->attr.open;

/* need parent for the kobj, grab both */
if (!kernfs_get_active(kn))
goto trigger;

Expand Down

0 comments on commit ba50150

Please sign in to comment.