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
e77e4300
Commit
e77e4300
authored
Jun 16, 2013
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more open-coded file_inode() calls
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
0b3fca1f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
arch/arc/kernel/troubleshoot.c
arch/arc/kernel/troubleshoot.c
+1
-1
drivers/staging/android/logger.c
drivers/staging/android/logger.c
+1
-1
net/sunrpc/auth_gss/svcauth_gss.c
net/sunrpc/auth_gss/svcauth_gss.c
+2
-2
No files found.
arch/arc/kernel/troubleshoot.c
View file @
e77e4300
...
@@ -101,7 +101,7 @@ static void show_faulting_vma(unsigned long address, char *buf)
...
@@ -101,7 +101,7 @@ static void show_faulting_vma(unsigned long address, char *buf)
if
(
file
)
{
if
(
file
)
{
struct
path
*
path
=
&
file
->
f_path
;
struct
path
*
path
=
&
file
->
f_path
;
nm
=
d_path
(
path
,
buf
,
PAGE_SIZE
-
1
);
nm
=
d_path
(
path
,
buf
,
PAGE_SIZE
-
1
);
inode
=
vma
->
vm_file
->
f_path
.
dentry
->
d_inode
;
inode
=
file_inode
(
vma
->
vm_file
)
;
dev
=
inode
->
i_sb
->
s_dev
;
dev
=
inode
->
i_sb
->
s_dev
;
ino
=
inode
->
i_ino
;
ino
=
inode
->
i_ino
;
}
}
...
...
drivers/staging/android/logger.c
View file @
e77e4300
...
@@ -696,7 +696,7 @@ static long logger_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
...
@@ -696,7 +696,7 @@ static long logger_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
ret
=
-
EBADF
;
ret
=
-
EBADF
;
break
;
break
;
}
}
if
(
!
(
in_egroup_p
(
file
->
f_dentry
->
d_inode
->
i_gid
)
||
if
(
!
(
in_egroup_p
(
file
_inode
(
file
)
->
i_gid
)
||
capable
(
CAP_SYSLOG
)))
{
capable
(
CAP_SYSLOG
)))
{
ret
=
-
EPERM
;
ret
=
-
EPERM
;
break
;
break
;
...
...
net/sunrpc/auth_gss/svcauth_gss.c
View file @
e77e4300
...
@@ -1330,7 +1330,7 @@ static int wait_for_gss_proxy(struct net *net, struct file *file)
...
@@ -1330,7 +1330,7 @@ static int wait_for_gss_proxy(struct net *net, struct file *file)
static
ssize_t
write_gssp
(
struct
file
*
file
,
const
char
__user
*
buf
,
static
ssize_t
write_gssp
(
struct
file
*
file
,
const
char
__user
*
buf
,
size_t
count
,
loff_t
*
ppos
)
size_t
count
,
loff_t
*
ppos
)
{
{
struct
net
*
net
=
PDE_DATA
(
file
->
f_path
.
dentry
->
d_inode
);
struct
net
*
net
=
PDE_DATA
(
file
_inode
(
file
)
);
char
tbuf
[
20
];
char
tbuf
[
20
];
unsigned
long
i
;
unsigned
long
i
;
int
res
;
int
res
;
...
@@ -1358,7 +1358,7 @@ static ssize_t write_gssp(struct file *file, const char __user *buf,
...
@@ -1358,7 +1358,7 @@ static ssize_t write_gssp(struct file *file, const char __user *buf,
static
ssize_t
read_gssp
(
struct
file
*
file
,
char
__user
*
buf
,
static
ssize_t
read_gssp
(
struct
file
*
file
,
char
__user
*
buf
,
size_t
count
,
loff_t
*
ppos
)
size_t
count
,
loff_t
*
ppos
)
{
{
struct
net
*
net
=
PDE_DATA
(
file
->
f_path
.
dentry
->
d_inode
);
struct
net
*
net
=
PDE_DATA
(
file
_inode
(
file
)
);
unsigned
long
p
=
*
ppos
;
unsigned
long
p
=
*
ppos
;
char
tbuf
[
10
];
char
tbuf
[
10
];
size_t
len
;
size_t
len
;
...
...
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