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
nexedi
linux
Commits
8add862f
Commit
8add862f
authored
Jan 30, 2013
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tegra: don't wank with d_find_alias()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
0990a97a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
9 deletions
+3
-9
drivers/iommu/tegra-smmu.c
drivers/iommu/tegra-smmu.c
+3
-9
No files found.
drivers/iommu/tegra-smmu.c
View file @
8add862f
...
...
@@ -1026,15 +1026,11 @@ static ssize_t smmu_debugfs_stats_write(struct file *file,
static
int
smmu_debugfs_stats_show
(
struct
seq_file
*
s
,
void
*
v
)
{
struct
smmu_debugfs_info
*
info
;
struct
smmu_device
*
smmu
;
struct
dentry
*
dent
;
struct
smmu_debugfs_info
*
info
=
s
->
private
;
struct
smmu_device
*
smmu
=
info
->
smmu
;
int
i
;
const
char
*
const
stats
[]
=
{
"hit"
,
"miss"
,
};
dent
=
d_find_alias
(
s
->
private
);
info
=
dent
->
d_inode
->
i_private
;
smmu
=
info
->
smmu
;
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
stats
);
i
++
)
{
u32
val
;
...
...
@@ -1048,14 +1044,12 @@ static int smmu_debugfs_stats_show(struct seq_file *s, void *v)
stats
[
i
],
val
,
offs
);
}
seq_printf
(
s
,
"
\n
"
);
dput
(
dent
);
return
0
;
}
static
int
smmu_debugfs_stats_open
(
struct
inode
*
inode
,
struct
file
*
file
)
{
return
single_open
(
file
,
smmu_debugfs_stats_show
,
inode
);
return
single_open
(
file
,
smmu_debugfs_stats_show
,
inode
->
i_private
);
}
static
const
struct
file_operations
smmu_debugfs_stats_fops
=
{
...
...
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