diff options
author | Tejun Heo <tj@kernel.org> | 2014-02-03 20:09:14 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-02-08 01:00:40 +0100 |
commit | 2536390da0d300b2734c721235c082498879841d (patch) | |
tree | e0b4ccccb541a2c71d08dad217a5725fc7b8a900 | |
parent | kernfs: implement kernfs_ops->atomic_write_len (diff) | |
download | linux-2536390da0d300b2734c721235c082498879841d.tar.xz linux-2536390da0d300b2734c721235c082498879841d.zip |
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>
-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; |