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
644da596
Commit
644da596
authored
Jun 07, 2010
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fs/inode.c:evict() doesn't care about delete vs. non-delete paths now
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
07958f9f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
fs/inode.c
fs/inode.c
+4
-4
No files found.
fs/inode.c
View file @
644da596
...
...
@@ -329,7 +329,7 @@ void clear_inode(struct inode *inode)
}
EXPORT_SYMBOL
(
clear_inode
);
static
void
evict
(
struct
inode
*
inode
,
int
delete
)
static
void
evict
(
struct
inode
*
inode
)
{
const
struct
super_operations
*
op
=
inode
->
i_sb
->
s_op
;
...
...
@@ -363,7 +363,7 @@ static void dispose_list(struct list_head *head)
inode
=
list_first_entry
(
head
,
struct
inode
,
i_list
);
list_del
(
&
inode
->
i_list
);
evict
(
inode
,
0
);
evict
(
inode
);
spin_lock
(
&
inode_lock
);
hlist_del_init
(
&
inode
->
i_hash
);
...
...
@@ -1224,7 +1224,7 @@ void generic_delete_inode(struct inode *inode)
inodes_stat
.
nr_inodes
--
;
spin_unlock
(
&
inode_lock
);
evict
(
inode
,
1
);
evict
(
inode
);
spin_lock
(
&
inode_lock
);
hlist_del_init
(
&
inode
->
i_hash
);
...
...
@@ -1279,7 +1279,7 @@ static void generic_forget_inode(struct inode *inode)
{
if
(
!
generic_detach_inode
(
inode
))
return
;
evict
(
inode
,
0
);
evict
(
inode
);
wake_up_inode
(
inode
);
destroy_inode
(
inode
);
}
...
...
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