aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/ipath/ipath_fs.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2011-07-24 23:27:00 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2012-01-03 22:55:03 -0500
commitf9ec80061af2116e9b6298a6334a6f288d7ea878 (patch)
treeb0c0a8a818e6aa8bcc468887f200af9e1d855ef4 /drivers/infiniband/hw/ipath/ipath_fs.c
parentfaef2b6c9960b5ae288899f461a2218ec6bb7928 (diff)
infiniband: umode_t noise, including open-coded S_ISDIR()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/infiniband/hw/ipath/ipath_fs.c')
-rw-r--r--drivers/infiniband/hw/ipath/ipath_fs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/infiniband/hw/ipath/ipath_fs.c b/drivers/infiniband/hw/ipath/ipath_fs.c
index 31ae1b108aea..b7d4216db3c3 100644
--- a/drivers/infiniband/hw/ipath/ipath_fs.c
+++ b/drivers/infiniband/hw/ipath/ipath_fs.c
@@ -46,7 +46,7 @@
46static struct super_block *ipath_super; 46static struct super_block *ipath_super;
47 47
48static int ipathfs_mknod(struct inode *dir, struct dentry *dentry, 48static int ipathfs_mknod(struct inode *dir, struct dentry *dentry,
49 int mode, const struct file_operations *fops, 49 umode_t mode, const struct file_operations *fops,
50 void *data) 50 void *data)
51{ 51{
52 int error; 52 int error;
@@ -61,7 +61,7 @@ static int ipathfs_mknod(struct inode *dir, struct dentry *dentry,
61 inode->i_mode = mode; 61 inode->i_mode = mode;
62 inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; 62 inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME;
63 inode->i_private = data; 63 inode->i_private = data;
64 if ((mode & S_IFMT) == S_IFDIR) { 64 if (S_ISDIR(mode)) {
65 inode->i_op = &simple_dir_inode_operations; 65 inode->i_op = &simple_dir_inode_operations;
66 inc_nlink(inode); 66 inc_nlink(inode);
67 inc_nlink(dir); 67 inc_nlink(dir);
@@ -76,7 +76,7 @@ bail:
76 return error; 76 return error;
77} 77}
78 78
79static int create_file(const char *name, mode_t mode, 79static int create_file(const char *name, umode_t mode,
80 struct dentry *parent, struct dentry **dentry, 80 struct dentry *parent, struct dentry **dentry,
81 const struct file_operations *fops, void *data) 81 const struct file_operations *fops, void *data)
82{ 82{