summaryrefslogtreecommitdiffstats
path: root/include/linux/kernfs.h
diff options
context:
space:
mode:
authorTejun Heo2014-02-03 20:09:14 +0100
committerGreg Kroah-Hartman2014-02-08 01:00:40 +0100
commit2536390da0d300b2734c721235c082498879841d (patch)
treee0b4ccccb541a2c71d08dad217a5725fc7b8a900 /include/linux/kernfs.h
parentkernfs: implement kernfs_ops->atomic_write_len (diff)
downloadkernel-qcow2-linux-2536390da0d300b2734c721235c082498879841d.tar.gz
kernel-qcow2-linux-2536390da0d300b2734c721235c082498879841d.tar.xz
kernel-qcow2-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>
Diffstat (limited to 'include/linux/kernfs.h')
-rw-r--r--include/linux/kernfs.h1
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;