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>
This commit is contained in:
parent
4d3773c4bb
commit
2536390da0
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue