Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 280241
b: refs/heads/master
c: f9ec800
h: refs/heads/master
i:
  280239: 0a91efc
v: v3
  • Loading branch information
Al Viro committed Jan 4, 2012
1 parent 386b555 commit afc55ec
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 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: faef2b6c9960b5ae288899f461a2218ec6bb7928
refs/heads/master: f9ec80061af2116e9b6298a6334a6f288d7ea878
6 changes: 3 additions & 3 deletions trunk/drivers/infiniband/hw/ipath/ipath_fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
static struct super_block *ipath_super;

static int ipathfs_mknod(struct inode *dir, struct dentry *dentry,
int mode, const struct file_operations *fops,
umode_t mode, const struct file_operations *fops,
void *data)
{
int error;
Expand All @@ -61,7 +61,7 @@ static int ipathfs_mknod(struct inode *dir, struct dentry *dentry,
inode->i_mode = mode;
inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME;
inode->i_private = data;
if ((mode & S_IFMT) == S_IFDIR) {
if (S_ISDIR(mode)) {
inode->i_op = &simple_dir_inode_operations;
inc_nlink(inode);
inc_nlink(dir);
Expand All @@ -76,7 +76,7 @@ static int ipathfs_mknod(struct inode *dir, struct dentry *dentry,
return error;
}

static int create_file(const char *name, mode_t mode,
static int create_file(const char *name, umode_t mode,
struct dentry *parent, struct dentry **dentry,
const struct file_operations *fops, void *data)
{
Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/infiniband/hw/qib/qib_fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ static struct super_block *qib_super;
#define private2dd(file) ((file)->f_dentry->d_inode->i_private)

static int qibfs_mknod(struct inode *dir, struct dentry *dentry,
int mode, const struct file_operations *fops,
umode_t mode, const struct file_operations *fops,
void *data)
{
int error;
Expand All @@ -67,7 +67,7 @@ static int qibfs_mknod(struct inode *dir, struct dentry *dentry,
inode->i_mtime = inode->i_atime;
inode->i_ctime = inode->i_atime;
inode->i_private = data;
if ((mode & S_IFMT) == S_IFDIR) {
if (S_ISDIR(mode)) {
inode->i_op = &simple_dir_inode_operations;
inc_nlink(inode);
inc_nlink(dir);
Expand All @@ -82,7 +82,7 @@ static int qibfs_mknod(struct inode *dir, struct dentry *dentry,
return error;
}

static int create_file(const char *name, mode_t mode,
static int create_file(const char *name, umode_t mode,
struct dentry *parent, struct dentry **dentry,
const struct file_operations *fops, void *data)
{
Expand Down

0 comments on commit afc55ec

Please sign in to comment.