diff options
Diffstat (limited to 'arch/s390/hypfs/inode.c')
-rw-r--r-- | arch/s390/hypfs/inode.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/s390/hypfs/inode.c b/arch/s390/hypfs/inode.c index 6fe874fc5f8e..481f4f76f664 100644 --- a/arch/s390/hypfs/inode.c +++ b/arch/s390/hypfs/inode.c | |||
@@ -108,9 +108,7 @@ static struct inode *hypfs_make_inode(struct super_block *sb, int mode) | |||
108 | ret->i_gid = hypfs_info->gid; | 108 | ret->i_gid = hypfs_info->gid; |
109 | ret->i_atime = ret->i_mtime = ret->i_ctime = CURRENT_TIME; | 109 | ret->i_atime = ret->i_mtime = ret->i_ctime = CURRENT_TIME; |
110 | if (mode & S_IFDIR) | 110 | if (mode & S_IFDIR) |
111 | ret->i_nlink = 2; | 111 | set_nlink(ret, 2); |
112 | else | ||
113 | ret->i_nlink = 1; | ||
114 | } | 112 | } |
115 | return ret; | 113 | return ret; |
116 | } | 114 | } |
@@ -361,7 +359,7 @@ static struct dentry *hypfs_create_file(struct super_block *sb, | |||
361 | } else if (mode & S_IFDIR) { | 359 | } else if (mode & S_IFDIR) { |
362 | inode->i_op = &simple_dir_inode_operations; | 360 | inode->i_op = &simple_dir_inode_operations; |
363 | inode->i_fop = &simple_dir_operations; | 361 | inode->i_fop = &simple_dir_operations; |
364 | parent->d_inode->i_nlink++; | 362 | inc_nlink(parent->d_inode); |
365 | } else | 363 | } else |
366 | BUG(); | 364 | BUG(); |
367 | inode->i_private = data; | 365 | inode->i_private = data; |