kernfs: add kernfs_open_file->priv
authorTejun Heo <tj@kernel.org>
Mon, 3 Feb 2014 19:09:14 +0000 (14:09 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 8 Feb 2014 00:00:40 +0000 (16:00 -0800)
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>
include/linux/kernfs.h

index 47f5235a097ac77edf9e28f93683c5015b04ff00..9ca0f09757a116c661c37d3aa97f371dae348190 100644 (file)
@@ -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;