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
8267952b
Commit
8267952b
authored
Jun 04, 2010
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
switch procfs to ->evict_inode()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
77b8a75f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
fs/proc/inode.c
fs/proc/inode.c
+3
-3
No files found.
fs/proc/inode.c
View file @
8267952b
...
@@ -25,11 +25,12 @@
...
@@ -25,11 +25,12 @@
#include "internal.h"
#include "internal.h"
static
void
proc_
delete
_inode
(
struct
inode
*
inode
)
static
void
proc_
evict
_inode
(
struct
inode
*
inode
)
{
{
struct
proc_dir_entry
*
de
;
struct
proc_dir_entry
*
de
;
truncate_inode_pages
(
&
inode
->
i_data
,
0
);
truncate_inode_pages
(
&
inode
->
i_data
,
0
);
end_writeback
(
inode
);
/* Stop tracking associated processes */
/* Stop tracking associated processes */
put_pid
(
PROC_I
(
inode
)
->
pid
);
put_pid
(
PROC_I
(
inode
)
->
pid
);
...
@@ -40,7 +41,6 @@ static void proc_delete_inode(struct inode *inode)
...
@@ -40,7 +41,6 @@ static void proc_delete_inode(struct inode *inode)
pde_put
(
de
);
pde_put
(
de
);
if
(
PROC_I
(
inode
)
->
sysctl
)
if
(
PROC_I
(
inode
)
->
sysctl
)
sysctl_head_put
(
PROC_I
(
inode
)
->
sysctl
);
sysctl_head_put
(
PROC_I
(
inode
)
->
sysctl
);
clear_inode
(
inode
);
}
}
struct
vfsmount
*
proc_mnt
;
struct
vfsmount
*
proc_mnt
;
...
@@ -91,7 +91,7 @@ static const struct super_operations proc_sops = {
...
@@ -91,7 +91,7 @@ static const struct super_operations proc_sops = {
.
alloc_inode
=
proc_alloc_inode
,
.
alloc_inode
=
proc_alloc_inode
,
.
destroy_inode
=
proc_destroy_inode
,
.
destroy_inode
=
proc_destroy_inode
,
.
drop_inode
=
generic_delete_inode
,
.
drop_inode
=
generic_delete_inode
,
.
delete_inode
=
proc_delete
_inode
,
.
evict_inode
=
proc_evict
_inode
,
.
statfs
=
simple_statfs
,
.
statfs
=
simple_statfs
,
};
};
...
...
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