aboutsummaryrefslogtreecommitdiffstats
path: root/fs/sysfs/inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/sysfs/inode.c')
-rw-r--r--fs/sysfs/inode.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/sysfs/inode.c b/fs/sysfs/inode.c
index bdd30e74de6b..082e2d430e93 100644
--- a/fs/sysfs/inode.c
+++ b/fs/sysfs/inode.c
@@ -141,6 +141,7 @@ struct inode * sysfs_new_inode(mode_t mode, struct sysfs_dirent * sd)
141 inode->i_mapping->a_ops = &sysfs_aops; 141 inode->i_mapping->a_ops = &sysfs_aops;
142 inode->i_mapping->backing_dev_info = &sysfs_backing_dev_info; 142 inode->i_mapping->backing_dev_info = &sysfs_backing_dev_info;
143 inode->i_op = &sysfs_inode_operations; 143 inode->i_op = &sysfs_inode_operations;
144 inode->i_ino = sd->s_ino;
144 lockdep_set_class(&inode->i_mutex, &sysfs_inode_imutex_key); 145 lockdep_set_class(&inode->i_mutex, &sysfs_inode_imutex_key);
145 146
146 if (sd->s_iattr) { 147 if (sd->s_iattr) {