Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
f9ec8006
Commit
f9ec8006
authored
Jul 24, 2011
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
infiniband: umode_t noise, including open-coded S_ISDIR()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
faef2b6c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
drivers/infiniband/hw/ipath/ipath_fs.c
drivers/infiniband/hw/ipath/ipath_fs.c
+3
-3
drivers/infiniband/hw/qib/qib_fs.c
drivers/infiniband/hw/qib/qib_fs.c
+3
-3
No files found.
drivers/infiniband/hw/ipath/ipath_fs.c
View file @
f9ec8006
...
@@ -46,7 +46,7 @@
...
@@ -46,7 +46,7 @@
static
struct
super_block
*
ipath_super
;
static
struct
super_block
*
ipath_super
;
static
int
ipathfs_mknod
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
static
int
ipathfs_mknod
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
in
t
mode
,
const
struct
file_operations
*
fops
,
umode_
t
mode
,
const
struct
file_operations
*
fops
,
void
*
data
)
void
*
data
)
{
{
int
error
;
int
error
;
...
@@ -61,7 +61,7 @@ static int ipathfs_mknod(struct inode *dir, struct dentry *dentry,
...
@@ -61,7 +61,7 @@ static int ipathfs_mknod(struct inode *dir, struct dentry *dentry,
inode
->
i_mode
=
mode
;
inode
->
i_mode
=
mode
;
inode
->
i_atime
=
inode
->
i_mtime
=
inode
->
i_ctime
=
CURRENT_TIME
;
inode
->
i_atime
=
inode
->
i_mtime
=
inode
->
i_ctime
=
CURRENT_TIME
;
inode
->
i_private
=
data
;
inode
->
i_private
=
data
;
if
(
(
mode
&
S_IFMT
)
==
S_IFDIR
)
{
if
(
S_ISDIR
(
mode
)
)
{
inode
->
i_op
=
&
simple_dir_inode_operations
;
inode
->
i_op
=
&
simple_dir_inode_operations
;
inc_nlink
(
inode
);
inc_nlink
(
inode
);
inc_nlink
(
dir
);
inc_nlink
(
dir
);
...
@@ -76,7 +76,7 @@ static int ipathfs_mknod(struct inode *dir, struct dentry *dentry,
...
@@ -76,7 +76,7 @@ static int ipathfs_mknod(struct inode *dir, struct dentry *dentry,
return
error
;
return
error
;
}
}
static
int
create_file
(
const
char
*
name
,
mode_t
mode
,
static
int
create_file
(
const
char
*
name
,
u
mode_t
mode
,
struct
dentry
*
parent
,
struct
dentry
**
dentry
,
struct
dentry
*
parent
,
struct
dentry
**
dentry
,
const
struct
file_operations
*
fops
,
void
*
data
)
const
struct
file_operations
*
fops
,
void
*
data
)
{
{
...
...
drivers/infiniband/hw/qib/qib_fs.c
View file @
f9ec8006
...
@@ -47,7 +47,7 @@ static struct super_block *qib_super;
...
@@ -47,7 +47,7 @@ static struct super_block *qib_super;
#define private2dd(file) ((file)->f_dentry->d_inode->i_private)
#define private2dd(file) ((file)->f_dentry->d_inode->i_private)
static
int
qibfs_mknod
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
static
int
qibfs_mknod
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
in
t
mode
,
const
struct
file_operations
*
fops
,
umode_
t
mode
,
const
struct
file_operations
*
fops
,
void
*
data
)
void
*
data
)
{
{
int
error
;
int
error
;
...
@@ -67,7 +67,7 @@ static int qibfs_mknod(struct inode *dir, struct dentry *dentry,
...
@@ -67,7 +67,7 @@ static int qibfs_mknod(struct inode *dir, struct dentry *dentry,
inode
->
i_mtime
=
inode
->
i_atime
;
inode
->
i_mtime
=
inode
->
i_atime
;
inode
->
i_ctime
=
inode
->
i_atime
;
inode
->
i_ctime
=
inode
->
i_atime
;
inode
->
i_private
=
data
;
inode
->
i_private
=
data
;
if
(
(
mode
&
S_IFMT
)
==
S_IFDIR
)
{
if
(
S_ISDIR
(
mode
)
)
{
inode
->
i_op
=
&
simple_dir_inode_operations
;
inode
->
i_op
=
&
simple_dir_inode_operations
;
inc_nlink
(
inode
);
inc_nlink
(
inode
);
inc_nlink
(
dir
);
inc_nlink
(
dir
);
...
@@ -82,7 +82,7 @@ static int qibfs_mknod(struct inode *dir, struct dentry *dentry,
...
@@ -82,7 +82,7 @@ static int qibfs_mknod(struct inode *dir, struct dentry *dentry,
return
error
;
return
error
;
}
}
static
int
create_file
(
const
char
*
name
,
mode_t
mode
,
static
int
create_file
(
const
char
*
name
,
u
mode_t
mode
,
struct
dentry
*
parent
,
struct
dentry
**
dentry
,
struct
dentry
*
parent
,
struct
dentry
**
dentry
,
const
struct
file_operations
*
fops
,
void
*
data
)
const
struct
file_operations
*
fops
,
void
*
data
)
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment