Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 280238
b: refs/heads/master
c: fec0eba
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro committed Jan 4, 2012
1 parent 522c819 commit b6fad75
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 67697cbdccb8b63eae892a9437bcc79d08b79578
refs/heads/master: fec0ebaed9ed074392551ea7324c6668f7d527fd
10 changes: 5 additions & 5 deletions trunk/arch/s390/hypfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ static void hypfs_delete_tree(struct dentry *root)
}
}

static struct inode *hypfs_make_inode(struct super_block *sb, int mode)
static struct inode *hypfs_make_inode(struct super_block *sb, umode_t mode)
{
struct inode *ret = new_inode(sb);

Expand All @@ -107,7 +107,7 @@ static struct inode *hypfs_make_inode(struct super_block *sb, int mode)
ret->i_uid = hypfs_info->uid;
ret->i_gid = hypfs_info->gid;
ret->i_atime = ret->i_mtime = ret->i_ctime = CURRENT_TIME;
if (mode & S_IFDIR)
if (S_ISDIR(mode))
set_nlink(ret, 2);
}
return ret;
Expand Down Expand Up @@ -333,7 +333,7 @@ static void hypfs_kill_super(struct super_block *sb)

static struct dentry *hypfs_create_file(struct super_block *sb,
struct dentry *parent, const char *name,
char *data, mode_t mode)
char *data, umode_t mode)
{
struct dentry *dentry;
struct inode *inode;
Expand All @@ -350,13 +350,13 @@ static struct dentry *hypfs_create_file(struct super_block *sb,
dentry = ERR_PTR(-ENOMEM);
goto fail;
}
if (mode & S_IFREG) {
if (S_ISREG(mode)) {
inode->i_fop = &hypfs_file_ops;
if (data)
inode->i_size = strlen(data);
else
inode->i_size = 0;
} else if (mode & S_IFDIR) {
} else if (S_ISDIR(mode)) {
inode->i_op = &simple_dir_inode_operations;
inode->i_fop = &simple_dir_operations;
inc_nlink(parent->d_inode);
Expand Down

0 comments on commit b6fad75

Please sign in to comment.