diff options
Diffstat (limited to 'arch/s390/hypfs/inode.c')
-rw-r--r-- | arch/s390/hypfs/inode.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/arch/s390/hypfs/inode.c b/arch/s390/hypfs/inode.c index bdade5f2e325..813fc21358f9 100644 --- a/arch/s390/hypfs/inode.c +++ b/arch/s390/hypfs/inode.c | |||
@@ -91,7 +91,6 @@ static struct inode *hypfs_make_inode(struct super_block *sb, int mode) | |||
91 | ret->i_mode = mode; | 91 | ret->i_mode = mode; |
92 | ret->i_uid = hypfs_info->uid; | 92 | ret->i_uid = hypfs_info->uid; |
93 | ret->i_gid = hypfs_info->gid; | 93 | ret->i_gid = hypfs_info->gid; |
94 | ret->i_blksize = PAGE_CACHE_SIZE; | ||
95 | ret->i_blocks = 0; | 94 | ret->i_blocks = 0; |
96 | ret->i_atime = ret->i_mtime = ret->i_ctime = CURRENT_TIME; | 95 | ret->i_atime = ret->i_mtime = ret->i_ctime = CURRENT_TIME; |
97 | if (mode & S_IFDIR) | 96 | if (mode & S_IFDIR) |
@@ -104,13 +103,13 @@ static struct inode *hypfs_make_inode(struct super_block *sb, int mode) | |||
104 | 103 | ||
105 | static void hypfs_drop_inode(struct inode *inode) | 104 | static void hypfs_drop_inode(struct inode *inode) |
106 | { | 105 | { |
107 | kfree(inode->u.generic_ip); | 106 | kfree(inode->i_private); |
108 | generic_delete_inode(inode); | 107 | generic_delete_inode(inode); |
109 | } | 108 | } |
110 | 109 | ||
111 | static int hypfs_open(struct inode *inode, struct file *filp) | 110 | static int hypfs_open(struct inode *inode, struct file *filp) |
112 | { | 111 | { |
113 | char *data = filp->f_dentry->d_inode->u.generic_ip; | 112 | char *data = filp->f_dentry->d_inode->i_private; |
114 | struct hypfs_sb_info *fs_info; | 113 | struct hypfs_sb_info *fs_info; |
115 | 114 | ||
116 | if (filp->f_mode & FMODE_WRITE) { | 115 | if (filp->f_mode & FMODE_WRITE) { |
@@ -352,7 +351,7 @@ static struct dentry *hypfs_create_file(struct super_block *sb, | |||
352 | parent->d_inode->i_nlink++; | 351 | parent->d_inode->i_nlink++; |
353 | } else | 352 | } else |
354 | BUG(); | 353 | BUG(); |
355 | inode->u.generic_ip = data; | 354 | inode->i_private = data; |
356 | d_instantiate(dentry, inode); | 355 | d_instantiate(dentry, inode); |
357 | dget(dentry); | 356 | dget(dentry); |
358 | return dentry; | 357 | return dentry; |