From: Tejun Heo Date: Mon, 3 Feb 2014 19:09:14 +0000 (-0500) Subject: kernfs: add kernfs_open_file->priv X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=2536390da0d300b2734c721235c082498879841d;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Greg Kroah-Hartman --- 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;