aboutsummaryrefslogtreecommitdiffstats
path: root/fs/kernfs/kernfs-internal.h
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2013-12-11 14:11:55 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-12-11 20:39:20 -0500
commitc525aaddc366df23eb095d58a2bdf11cce62a98b (patch)
tree4f1e5e85e619e46daef45537bd5926925587b463 /fs/kernfs/kernfs-internal.h
parentadc5e8b58f4886d45f79f4ff41a09001a76a6b12 (diff)
kernfs: s/sysfs/kernfs/ in various data structures
kernfs has just been separated out from sysfs and we're already in full conflict mode. Nothing can make the situation any worse. Let's take the chance to name things properly. This patch performs the following renames. * s/sysfs_open_dirent/kernfs_open_node/ * s/sysfs_open_file/kernfs_open_file/ * s/sysfs_inode_attrs/kernfs_iattrs/ * s/sysfs_addrm_cxt/kernfs_addrm_cxt/ * s/sysfs_super_info/kernfs_super_info/ * s/sysfs_info()/kernfs_info()/ * s/sysfs_open_dirent_lock/kernfs_open_node_lock/ * s/sysfs_open_file_mutex/kernfs_open_file_mutex/ * s/sysfs_of()/kernfs_of()/ This patch is strictly rename only and doesn't introduce any functional difference. Signed-off-by: Tejun Heo <tj@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/kernfs/kernfs-internal.h')
-rw-r--r--fs/kernfs/kernfs-internal.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/fs/kernfs/kernfs-internal.h b/fs/kernfs/kernfs-internal.h
index 2dbb1cb95e7f..573f66988643 100644
--- a/fs/kernfs/kernfs-internal.h
+++ b/fs/kernfs/kernfs-internal.h
@@ -18,7 +18,7 @@
18 18
19#include <linux/kernfs.h> 19#include <linux/kernfs.h>
20 20
21struct sysfs_inode_attrs { 21struct kernfs_iattrs {
22 struct iattr ia_iattr; 22 struct iattr ia_iattr;
23 void *ia_secdata; 23 void *ia_secdata;
24 u32 ia_secdata_len; 24 u32 ia_secdata_len;
@@ -47,14 +47,14 @@ static inline struct kernfs_root *kernfs_root(struct kernfs_node *kn)
47/* 47/*
48 * Context structure to be used while adding/removing nodes. 48 * Context structure to be used while adding/removing nodes.
49 */ 49 */
50struct sysfs_addrm_cxt { 50struct kernfs_addrm_cxt {
51 struct kernfs_node *removed; 51 struct kernfs_node *removed;
52}; 52};
53 53
54/* 54/*
55 * mount.c 55 * mount.c
56 */ 56 */
57struct sysfs_super_info { 57struct kernfs_super_info {
58 /* 58 /*
59 * The root associated with this super_block. Each super_block is 59 * The root associated with this super_block. Each super_block is
60 * identified by the root and ns it's associated with. 60 * identified by the root and ns it's associated with.
@@ -63,13 +63,13 @@ struct sysfs_super_info {
63 63
64 /* 64 /*
65 * Each sb is associated with one namespace tag, currently the 65 * Each sb is associated with one namespace tag, currently the
66 * network namespace of the task which mounted this sysfs instance. 66 * network namespace of the task which mounted this kernfs
67 * If multiple tags become necessary, make the following an array 67 * instance. If multiple tags become necessary, make the following
68 * and compare kernfs_node tag against every entry. 68 * an array and compare kernfs_node tag against every entry.
69 */ 69 */
70 const void *ns; 70 const void *ns;
71}; 71};
72#define sysfs_info(SB) ((struct sysfs_super_info *)(SB->s_fs_info)) 72#define kernfs_info(SB) ((struct kernfs_super_info *)(SB->s_fs_info))
73 73
74extern struct kmem_cache *sysfs_dir_cachep; 74extern struct kmem_cache *sysfs_dir_cachep;
75 75
@@ -100,10 +100,10 @@ extern const struct inode_operations sysfs_dir_inode_operations;
100 100
101struct kernfs_node *sysfs_get_active(struct kernfs_node *kn); 101struct kernfs_node *sysfs_get_active(struct kernfs_node *kn);
102void sysfs_put_active(struct kernfs_node *kn); 102void sysfs_put_active(struct kernfs_node *kn);
103void sysfs_addrm_start(struct sysfs_addrm_cxt *acxt); 103void sysfs_addrm_start(struct kernfs_addrm_cxt *acxt);
104int sysfs_add_one(struct sysfs_addrm_cxt *acxt, struct kernfs_node *kn, 104int sysfs_add_one(struct kernfs_addrm_cxt *acxt, struct kernfs_node *kn,
105 struct kernfs_node *parent); 105 struct kernfs_node *parent);
106void sysfs_addrm_finish(struct sysfs_addrm_cxt *acxt); 106void sysfs_addrm_finish(struct kernfs_addrm_cxt *acxt);
107struct kernfs_node *sysfs_new_dirent(struct kernfs_root *root, 107struct kernfs_node *sysfs_new_dirent(struct kernfs_root *root,
108 const char *name, umode_t mode, int type); 108 const char *name, umode_t mode, int type);
109 109