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
3aa3377f
Commit
3aa3377f
authored
Oct 31, 2014
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
procfs: get rid of ->f_dentry
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
ef8a1a10
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
fs/proc/base.c
fs/proc/base.c
+2
-2
No files found.
fs/proc/base.c
View file @
3aa3377f
...
...
@@ -2789,7 +2789,7 @@ static struct tgid_iter next_tgid(struct pid_namespace *ns, struct tgid_iter ite
int
proc_pid_readdir
(
struct
file
*
file
,
struct
dir_context
*
ctx
)
{
struct
tgid_iter
iter
;
struct
pid_namespace
*
ns
=
file
->
f_dentry
->
d
_sb
->
s_fs_info
;
struct
pid_namespace
*
ns
=
file
_inode
(
file
)
->
i
_sb
->
s_fs_info
;
loff_t
pos
=
ctx
->
pos
;
if
(
pos
>=
PID_MAX_LIMIT
+
TGID_OFFSET
)
...
...
@@ -3095,7 +3095,7 @@ static int proc_task_readdir(struct file *file, struct dir_context *ctx)
/* f_version caches the tgid value that the last readdir call couldn't
* return. lseek aka telldir automagically resets f_version to 0.
*/
ns
=
file
->
f_dentry
->
d
_sb
->
s_fs_info
;
ns
=
inode
->
i
_sb
->
s_fs_info
;
tid
=
(
int
)
file
->
f_version
;
file
->
f_version
=
0
;
for
(
task
=
first_tid
(
proc_pid
(
inode
),
tid
,
ctx
->
pos
-
2
,
ns
);
...
...
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