diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2010-02-12 22:22:27 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-03-07 20:04:52 -0500 |
commit | fac2622bbad4d7e3a32c53e631e018b80ec631dc (patch) | |
tree | 42e4ad2b38c6d40c86eabaff5efff2b0adeb0b40 /fs/sysfs/sysfs.h | |
parent | 2354dcc7218853a6537ec722be40fde9a11c413b (diff) |
sysfs: Pass super_block to sysfs_get_inode
Currently sysfs_get_inode magically returns an inode on
sysfs_sb. Make the super_block parameter explicit and
the code becomes clearer.
Acked-by: Tejun Heo <tj@kernel.org>
Acked-by: Serge Hallyn <serue@us.ibm.com>
Signed-off-by: Eric W. Biederman <ebiederm@aristanetworks.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'fs/sysfs/sysfs.h')
-rw-r--r-- | fs/sysfs/sysfs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/sysfs/sysfs.h b/fs/sysfs/sysfs.h index 5a3192a08442..7593d71d92f8 100644 --- a/fs/sysfs/sysfs.h +++ b/fs/sysfs/sysfs.h | |||
@@ -172,7 +172,7 @@ static inline void __sysfs_put(struct sysfs_dirent *sd) | |||
172 | /* | 172 | /* |
173 | * inode.c | 173 | * inode.c |
174 | */ | 174 | */ |
175 | struct inode *sysfs_get_inode(struct sysfs_dirent *sd); | 175 | struct inode *sysfs_get_inode(struct super_block *sb, struct sysfs_dirent *sd); |
176 | void sysfs_delete_inode(struct inode *inode); | 176 | void sysfs_delete_inode(struct inode *inode); |
177 | int sysfs_sd_setattr(struct sysfs_dirent *sd, struct iattr *iattr); | 177 | int sysfs_sd_setattr(struct sysfs_dirent *sd, struct iattr *iattr); |
178 | int sysfs_permission(struct inode *inode, int mask); | 178 | int sysfs_permission(struct inode *inode, int mask); |