diff options
| author | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-01-13 15:00:22 +0000 | 
|---|---|---|
| committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-01-13 15:00:22 +0000 | 
| commit | 4de3a8e101150feaefa1139611a50ff37467f33e (patch) | |
| tree | daada742542518b02d7db7c5d32e715eaa5f166d /arch/s390/hypfs/inode.c | |
| parent | 294064f58953f9964e5945424b09c51800330a83 (diff) | |
| parent | 099469502f62fbe0d7e4f0b83a2f22538367f734 (diff) | |
| download | olio-linux-3.10-4de3a8e101150feaefa1139611a50ff37467f33e.tar.xz olio-linux-3.10-4de3a8e101150feaefa1139611a50ff37467f33e.zip  | |
Merge branch 'master' into fixes
Diffstat (limited to 'arch/s390/hypfs/inode.c')
| -rw-r--r-- | arch/s390/hypfs/inode.c | 14 | 
1 files changed, 7 insertions, 7 deletions
diff --git a/arch/s390/hypfs/inode.c b/arch/s390/hypfs/inode.c index 481f4f76f66..8a2a887478c 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)  	}  } -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); @@ -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; @@ -259,9 +259,9 @@ static int hypfs_parse_options(char *options, struct super_block *sb)  	return 0;  } -static int hypfs_show_options(struct seq_file *s, struct vfsmount *mnt) +static int hypfs_show_options(struct seq_file *s, struct dentry *root)  { -	struct hypfs_sb_info *hypfs_info = mnt->mnt_sb->s_fs_info; +	struct hypfs_sb_info *hypfs_info = root->d_sb->s_fs_info;  	seq_printf(s, ",uid=%u", hypfs_info->uid);  	seq_printf(s, ",gid=%u", hypfs_info->gid); @@ -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; @@ -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);  |