aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/kernfs.h
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2014-02-03 14:09:09 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-02-07 18:52:48 -0500
commit90c07c895c87d38db100b6afcb686ab3ef0d6a64 (patch)
tree22ff946cdcd306f0ba5ce998832db0028bae3aab /include/linux/kernfs.h
parent07c7530dd46728e25e938d0eb291f8085435c365 (diff)
kernfs: rename kernfs_dir_ops to kernfs_syscall_ops
We're gonna need non-dir syscall callbacks, which will make dir_ops a misnomer. Let's rename kernfs_dir_ops to kernfs_syscall_ops. This is pure rename. Signed-off-by: Tejun Heo <tj@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/kernfs.h')
-rw-r--r--include/linux/kernfs.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/include/linux/kernfs.h b/include/linux/kernfs.h
index 58a131ddc6a3..5ddc47450335 100644
--- a/include/linux/kernfs.h
+++ b/include/linux/kernfs.h
@@ -108,13 +108,13 @@ struct kernfs_node {
108}; 108};
109 109
110/* 110/*
111 * kernfs_dir_ops may be specified on kernfs_create_root() to support 111 * kernfs_syscall_ops may be specified on kernfs_create_root() to support
112 * directory manipulation syscalls. These optional callbacks are invoked 112 * syscalls. These optional callbacks are invoked on the matching syscalls
113 * on the matching syscalls and can perform any kernfs operations which 113 * and can perform any kernfs operations which don't necessarily have to be
114 * don't necessarily have to be the exact operation requested. An active 114 * the exact operation requested. An active reference is held for each
115 * reference is held for each kernfs_node parameter. 115 * kernfs_node parameter.
116 */ 116 */
117struct kernfs_dir_ops { 117struct kernfs_syscall_ops {
118 int (*mkdir)(struct kernfs_node *parent, const char *name, 118 int (*mkdir)(struct kernfs_node *parent, const char *name,
119 umode_t mode); 119 umode_t mode);
120 int (*rmdir)(struct kernfs_node *kn); 120 int (*rmdir)(struct kernfs_node *kn);
@@ -128,7 +128,7 @@ struct kernfs_root {
128 128
129 /* private fields, do not use outside kernfs proper */ 129 /* private fields, do not use outside kernfs proper */
130 struct ida ino_ida; 130 struct ida ino_ida;
131 struct kernfs_dir_ops *dir_ops; 131 struct kernfs_syscall_ops *syscall_ops;
132 wait_queue_head_t deactivate_waitq; 132 wait_queue_head_t deactivate_waitq;
133}; 133};
134 134
@@ -219,7 +219,7 @@ struct kernfs_node *kernfs_find_and_get_ns(struct kernfs_node *parent,
219void kernfs_get(struct kernfs_node *kn); 219void kernfs_get(struct kernfs_node *kn);
220void kernfs_put(struct kernfs_node *kn); 220void kernfs_put(struct kernfs_node *kn);
221 221
222struct kernfs_root *kernfs_create_root(struct kernfs_dir_ops *kdops, 222struct kernfs_root *kernfs_create_root(struct kernfs_syscall_ops *scops,
223 void *priv); 223 void *priv);
224void kernfs_destroy_root(struct kernfs_root *root); 224void kernfs_destroy_root(struct kernfs_root *root);
225 225
@@ -273,7 +273,7 @@ static inline void kernfs_get(struct kernfs_node *kn) { }
273static inline void kernfs_put(struct kernfs_node *kn) { } 273static inline void kernfs_put(struct kernfs_node *kn) { }
274 274
275static inline struct kernfs_root * 275static inline struct kernfs_root *
276kernfs_create_root(struct kernfs_dir_ops *kdops, void *priv) 276kernfs_create_root(struct kernfs_syscall_ops *scops, void *priv)
277{ return ERR_PTR(-ENOSYS); } 277{ return ERR_PTR(-ENOSYS); }
278 278
279static inline void kernfs_destroy_root(struct kernfs_root *root) { } 279static inline void kernfs_destroy_root(struct kernfs_root *root) { }