diff options
Diffstat (limited to 'arch/s390/hypfs/inode.c')
-rw-r--r-- | arch/s390/hypfs/inode.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/s390/hypfs/inode.c b/arch/s390/hypfs/inode.c index 481f4f76f664..98efd2d6207a 100644 --- a/arch/s390/hypfs/inode.c +++ b/arch/s390/hypfs/inode.c | |||
@@ -97,7 +97,7 @@ static void hypfs_delete_tree(struct dentry *root) | |||
97 | } | 97 | } |
98 | } | 98 | } |
99 | 99 | ||
100 | static struct inode *hypfs_make_inode(struct super_block *sb, int mode) | 100 | static struct inode *hypfs_make_inode(struct super_block *sb, umode_t mode) |
101 | { | 101 | { |
102 | struct inode *ret = new_inode(sb); | 102 | struct inode *ret = new_inode(sb); |
103 | 103 | ||
@@ -107,7 +107,7 @@ static struct inode *hypfs_make_inode(struct super_block *sb, int mode) | |||
107 | ret->i_uid = hypfs_info->uid; | 107 | ret->i_uid = hypfs_info->uid; |
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 (S_ISDIR(mode)) |
111 | set_nlink(ret, 2); | 111 | set_nlink(ret, 2); |
112 | } | 112 | } |
113 | return ret; | 113 | return ret; |
@@ -333,7 +333,7 @@ static void hypfs_kill_super(struct super_block *sb) | |||
333 | 333 | ||
334 | static struct dentry *hypfs_create_file(struct super_block *sb, | 334 | static struct dentry *hypfs_create_file(struct super_block *sb, |
335 | struct dentry *parent, const char *name, | 335 | struct dentry *parent, const char *name, |
336 | char *data, mode_t mode) | 336 | char *data, umode_t mode) |
337 | { | 337 | { |
338 | struct dentry *dentry; | 338 | struct dentry *dentry; |
339 | struct inode *inode; | 339 | struct inode *inode; |
@@ -350,13 +350,13 @@ static struct dentry *hypfs_create_file(struct super_block *sb, | |||
350 | dentry = ERR_PTR(-ENOMEM); | 350 | dentry = ERR_PTR(-ENOMEM); |
351 | goto fail; | 351 | goto fail; |
352 | } | 352 | } |
353 | if (mode & S_IFREG) { | 353 | if (S_ISREG(mode)) { |
354 | inode->i_fop = &hypfs_file_ops; | 354 | inode->i_fop = &hypfs_file_ops; |
355 | if (data) | 355 | if (data) |
356 | inode->i_size = strlen(data); | 356 | inode->i_size = strlen(data); |
357 | else | 357 | else |
358 | inode->i_size = 0; | 358 | inode->i_size = 0; |
359 | } else if (mode & S_IFDIR) { | 359 | } else if (S_ISDIR(mode)) { |
360 | inode->i_op = &simple_dir_inode_operations; | 360 | inode->i_op = &simple_dir_inode_operations; |
361 | inode->i_fop = &simple_dir_operations; | 361 | inode->i_fop = &simple_dir_operations; |
362 | inc_nlink(parent->d_inode); | 362 | inc_nlink(parent->d_inode); |