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
ae50adcb
Commit
ae50adcb
authored
Feb 16, 2011
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
/proc/self is never going to be invalidated...
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
39794917
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
30 deletions
+0
-30
fs/proc/base.c
fs/proc/base.c
+0
-30
No files found.
fs/proc/base.c
View file @
ae50adcb
...
...
@@ -2620,35 +2620,6 @@ static const struct pid_entry proc_base_stuff[] = {
&
proc_self_inode_operations
,
NULL
,
{}),
};
/*
* Exceptional case: normally we are not allowed to unhash a busy
* directory. In this case, however, we can do it - no aliasing problems
* due to the way we treat inodes.
*/
static
int
proc_base_revalidate
(
struct
dentry
*
dentry
,
struct
nameidata
*
nd
)
{
struct
inode
*
inode
;
struct
task_struct
*
task
;
if
(
nd
->
flags
&
LOOKUP_RCU
)
return
-
ECHILD
;
inode
=
dentry
->
d_inode
;
task
=
get_proc_task
(
inode
);
if
(
task
)
{
put_task_struct
(
task
);
return
1
;
}
d_drop
(
dentry
);
return
0
;
}
static
const
struct
dentry_operations
proc_base_dentry_operations
=
{
.
d_revalidate
=
proc_base_revalidate
,
.
d_delete
=
pid_delete_dentry
,
};
static
struct
dentry
*
proc_base_instantiate
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
struct
task_struct
*
task
,
const
void
*
ptr
)
{
...
...
@@ -2685,7 +2656,6 @@ static struct dentry *proc_base_instantiate(struct inode *dir,
if
(
p
->
fop
)
inode
->
i_fop
=
p
->
fop
;
ei
->
op
=
p
->
op
;
d_set_d_op
(
dentry
,
&
proc_base_dentry_operations
);
d_add
(
dentry
,
inode
);
error
=
NULL
;
out:
...
...
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