projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d3773c
)
kernfs: add kernfs_open_file->priv
author
Tejun Heo
<tj@kernel.org>
Mon, 3 Feb 2014 19:09:14 +0000
(14:09 -0500)
committer
Greg 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
patch
|
blob
|
history
diff --git
a/include/linux/kernfs.h
b/include/linux/kernfs.h
index 47f5235a097ac77edf9e28f93683c5015b04ff00..9ca0f09757a116c661c37d3aa97f371dae348190 100644
(file)
--- 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;