From: Tejun Heo <tj@kernel.org>
To: gregkh@linuxfoundation.org
Cc: linux-kernel@vger.kernel.org, Tejun Heo <tj@kernel.org>
Subject: [PATCH 7/9] kernfs: add kernfs_open_file->priv
Date: Tue, 28 Jan 2014 18:32:49 -0500 [thread overview]
Message-ID: <1390951971-15671-8-git-send-email-tj@kernel.org> (raw)
In-Reply-To: <1390951971-15671-1-git-send-email-tj@kernel.org>
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
next prev parent reply other threads:[~2014-01-28 23:33 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-28 23:32 [PATCHSET driver-core-next] kernfs: prepare for cgroup's kernfs conversion Tejun Heo
2014-01-28 23:32 ` [PATCH 1/9] kernfs: invoke dir_ops while holding active ref of the target node Tejun Heo
2014-01-28 23:32 ` [PATCH 2/9] kernfs: rename kernfs_dir_ops to kernfs_syscall_ops Tejun Heo
2014-01-28 23:32 ` [PATCH 3/9] kernfs: implement kernfs_syscall_ops->remount_fs() and ->show_options() Tejun Heo
2014-01-28 23:32 ` [PATCH 4/9] kernfs: add missing kernfs_active() checks in directory operations Tejun Heo
2014-01-28 23:32 ` [PATCH 5/9] kernfs: allow nodes to be created in the deactivated state Tejun Heo
2014-01-28 23:32 ` [PATCH 6/9] kernfs: implement kernfs_ops->atomic_write_len Tejun Heo
2014-01-28 23:32 ` Tejun Heo [this message]
2014-01-28 23:32 ` [PATCH 8/9] kernfs: implement kernfs_node_from_dentry(), kernfs_root_from_sb() and kernfs_rename() Tejun Heo
2014-01-28 23:32 ` [PATCH 9/9] kernfs: implement kernfs_get_parent(), kernfs_name/path() and friends Tejun Heo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1390951971-15671-8-git-send-email-tj@kernel.org \
--to=tj@kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox