diff options
Diffstat (limited to 'fs/openpromfs/inode.c')
-rw-r--r-- | fs/openpromfs/inode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/openpromfs/inode.c b/fs/openpromfs/inode.c index a2a5bff774e3..e4e0ff7962e2 100644 --- a/fs/openpromfs/inode.c +++ b/fs/openpromfs/inode.c | |||
@@ -242,7 +242,7 @@ found: | |||
242 | inode->i_mode = S_IFDIR | S_IRUGO | S_IXUGO; | 242 | inode->i_mode = S_IFDIR | S_IRUGO | S_IXUGO; |
243 | inode->i_op = &openprom_inode_operations; | 243 | inode->i_op = &openprom_inode_operations; |
244 | inode->i_fop = &openprom_operations; | 244 | inode->i_fop = &openprom_operations; |
245 | inode->i_nlink = 2; | 245 | set_nlink(inode, 2); |
246 | break; | 246 | break; |
247 | case op_inode_prop: | 247 | case op_inode_prop: |
248 | if (!strcmp(dp->name, "options") && (len == 17) && | 248 | if (!strcmp(dp->name, "options") && (len == 17) && |
@@ -251,7 +251,7 @@ found: | |||
251 | else | 251 | else |
252 | inode->i_mode = S_IFREG | S_IRUGO; | 252 | inode->i_mode = S_IFREG | S_IRUGO; |
253 | inode->i_fop = &openpromfs_prop_ops; | 253 | inode->i_fop = &openpromfs_prop_ops; |
254 | inode->i_nlink = 1; | 254 | set_nlink(inode, 1); |
255 | inode->i_size = ent_oi->u.prop->length; | 255 | inode->i_size = ent_oi->u.prop->length; |
256 | break; | 256 | break; |
257 | } | 257 | } |