diff options
author | Tejun Heo <tj@kernel.org> | 2014-02-03 14:09:14 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-02-07 16:00:40 -0800 |
commit | 2536390da0d300b2734c721235c082498879841d (patch) | |
tree | e0b4ccccb541a2c71d08dad217a5725fc7b8a900 /include/linux/kernfs.h | |
parent | 4d3773c4bb41ed5228f1ab7a4a52b79e17b10515 (diff) |
kernfs: add kernfs_open_file->priv
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>
Diffstat (limited to 'include/linux/kernfs.h')
-rw-r--r-- | include/linux/kernfs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/kernfs.h b/include/linux/kernfs.h index 47f5235a097a..9ca0f09757a1 100644 --- a/include/linux/kernfs.h +++ b/include/linux/kernfs.h @@ -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; |