summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2014-02-03 14:09:14 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-02-07 16:00:40 -0800
commit2536390da0d300b2734c721235c082498879841d (patch)
treee0b4ccccb541a2c71d08dad217a5725fc7b8a900
parent4d3773c4bb41ed5228f1ab7a4a52b79e17b10515 (diff)
downloadlinux-2536390da0d300b2734c721235c082498879841d.tar.gz
linux-2536390da0d300b2734c721235c082498879841d.tar.bz2
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.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;