lkml.org 
[lkml]   [2014]   [Feb]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 07/10] kernfs: add kernfs_open_file->priv
Date
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>
---
include/linux/kernfs.h | 1 +
1 file changed, 1 insertion(+)

diff --git a/include/linux/kernfs.h b/include/linux/kernfs.h
index 47f5235..9ca0f09 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;
--
1.8.5.3


\
 
 \ /
  Last update: 2014-02-04 00:41    [W:0.095 / U:0.352 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site