Skip to content

Commit

Permalink
kernfs: add kernfs_open_file->priv
Browse files Browse the repository at this point in the history
Add a private data field to be used by kernfs file operations.  This
generally makes sense and will be used by cgroup.

Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Tejun Heo authored and Greg Kroah-Hartman committed Feb 8, 2014
1 parent 4d3773c commit 2536390
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/linux/kernfs.h
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ struct kernfs_open_file {
/* published fields */
struct kernfs_node *kn;
struct file *file;
void *priv;

/* private fields, do not use outside kernfs proper */
struct mutex mutex;
Expand Down

0 comments on commit 2536390

Please sign in to comment.