aboutsummaryrefslogtreecommitdiffstats
path: root/fs/kernfs/kernfs-internal.h
diff options
context:
space:
mode:
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