diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2007-08-20 08:36:29 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-10-12 17:51:07 -0400 |
commit | 372e88bd1922228e0a55228f6dc8e311d1696fa0 (patch) | |
tree | 3f078e13b55a4fc20fe0df5c7e85045554e536bf /fs/sysfs/mount.c | |
parent | 253280267a7f1ced0c434fb24b7bef92d7d22628 (diff) |
sysfs: Move all of inode initialization into sysfs_init_inode
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Tejun Heo <htejun@gmail.com>
Cc: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'fs/sysfs/mount.c')
-rw-r--r-- | fs/sysfs/mount.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/fs/sysfs/mount.c b/fs/sysfs/mount.c index 119f39da1ae1..92f407fb1263 100644 --- a/fs/sysfs/mount.c +++ b/fs/sysfs/mount.c | |||
@@ -49,11 +49,6 @@ static int sysfs_fill_super(struct super_block *sb, void *data, int silent) | |||
49 | return -ENOMEM; | 49 | return -ENOMEM; |
50 | } | 50 | } |
51 | 51 | ||
52 | inode->i_op = &sysfs_dir_inode_operations; | ||
53 | inode->i_fop = &sysfs_dir_operations; | ||
54 | inc_nlink(inode); /* directory, account for "." */ | ||
55 | unlock_new_inode(inode); | ||
56 | |||
57 | /* instantiate and link root dentry */ | 52 | /* instantiate and link root dentry */ |
58 | root = d_alloc_root(inode); | 53 | root = d_alloc_root(inode); |
59 | if (!root) { | 54 | if (!root) { |