diff options
author | Tejun Heo <htejun@gmail.com> | 2007-06-13 14:45:16 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-07-11 19:09:05 -0400 |
commit | 198a2a847015805c6f57d8cc732bdaaccb494007 (patch) | |
tree | 614aa44e1bd1ab31a5baaab717c3af95773bd06b /fs/sysfs/sysfs.h | |
parent | 73107cb3ad3963c0f929ae681c05081eafb1c079 (diff) |
sysfs: separate out sysfs_attach_dentry()
Consolidate sd <-> dentry association into sysfs_attach_dentry() and
call it after dentry and inode are properly set up. This is in
preparation of sysfs_drop_dentry() updates.
Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'fs/sysfs/sysfs.h')
-rw-r--r-- | fs/sysfs/sysfs.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/sysfs/sysfs.h b/fs/sysfs/sysfs.h index 8b09e9d882c2..9fa77d648aa5 100644 --- a/fs/sysfs/sysfs.h +++ b/fs/sysfs/sysfs.h | |||
@@ -58,7 +58,8 @@ extern struct kmem_cache *sysfs_dir_cachep; | |||
58 | 58 | ||
59 | extern void sysfs_delete_inode(struct inode *inode); | 59 | extern void sysfs_delete_inode(struct inode *inode); |
60 | extern struct inode * sysfs_new_inode(mode_t mode, struct sysfs_dirent *); | 60 | extern struct inode * sysfs_new_inode(mode_t mode, struct sysfs_dirent *); |
61 | extern int sysfs_create(struct dentry *, int mode, int (*init)(struct inode *)); | 61 | extern int sysfs_create(struct sysfs_dirent *sd, struct dentry *dentry, |
62 | int mode, int (*init)(struct inode *)); | ||
62 | 63 | ||
63 | extern void release_sysfs_dirent(struct sysfs_dirent * sd); | 64 | extern void release_sysfs_dirent(struct sysfs_dirent * sd); |
64 | extern int sysfs_dirent_exist(struct sysfs_dirent *, const unsigned char *); | 65 | extern int sysfs_dirent_exist(struct sysfs_dirent *, const unsigned char *); |