diff options
-rw-r--r-- | fs/sysfs/mount.c | 2 | ||||
-rw-r--r-- | fs/sysfs/sysfs.h | 14 |
2 files changed, 8 insertions, 8 deletions
diff --git a/fs/sysfs/mount.c b/fs/sysfs/mount.c index 21070c286e3f..fcbe5e80aeeb 100644 --- a/fs/sysfs/mount.c +++ b/fs/sysfs/mount.c | |||
@@ -92,7 +92,7 @@ static int sysfs_set_super(struct super_block *sb, void *data) | |||
92 | 92 | ||
93 | static void free_sysfs_super_info(struct sysfs_super_info *info) | 93 | static void free_sysfs_super_info(struct sysfs_super_info *info) |
94 | { | 94 | { |
95 | kobj_ns_drop(KOBJ_NS_TYPE_NET, info->ns); | 95 | kobj_ns_drop(KOBJ_NS_TYPE_NET, (void *)info->ns); |
96 | kfree(info); | 96 | kfree(info); |
97 | } | 97 | } |
98 | 98 | ||
diff --git a/fs/sysfs/sysfs.h b/fs/sysfs/sysfs.h index 6d0dcead2d6a..ce97907e2894 100644 --- a/fs/sysfs/sysfs.h +++ b/fs/sysfs/sysfs.h | |||
@@ -18,14 +18,14 @@ | |||
18 | * mount.c | 18 | * mount.c |
19 | */ | 19 | */ |
20 | 20 | ||
21 | /* | ||
22 | * Each sb is associated with one namespace tag, currently the network | ||
23 | * namespace of the task which mounted this sysfs instance. If multiple | ||
24 | * tags become necessary, make the following an array and compare | ||
25 | * sysfs_dirent tag against every entry. | ||
26 | */ | ||
27 | struct sysfs_super_info { | 21 | struct sysfs_super_info { |
28 | void *ns; | 22 | /* |
23 | * Each sb is associated with one namespace tag, currently the network | ||
24 | * namespace of the task which mounted this sysfs instance. If multiple | ||
25 | * tags become necessary, make the following an array and compare | ||
26 | * sysfs_dirent tag against every entry. | ||
27 | */ | ||
28 | const void *ns; | ||
29 | }; | 29 | }; |
30 | #define sysfs_info(SB) ((struct sysfs_super_info *)(SB->s_fs_info)) | 30 | #define sysfs_info(SB) ((struct sysfs_super_info *)(SB->s_fs_info)) |
31 | extern struct sysfs_dirent sysfs_root; | 31 | extern struct sysfs_dirent sysfs_root; |