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
27d2e5e5
Commit
27d2e5e5
authored
Apr 11, 2004
by
Andrew Morton
Committed by
Linus Torvalds
Apr 11, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] fs/inode.c list_head cleanup
Teach inode.c about list_move().
parent
ed678f13
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
10 deletions
+5
-10
fs/inode.c
fs/inode.c
+5
-10
No files found.
fs/inode.c
View file @
27d2e5e5
...
...
@@ -216,10 +216,8 @@ void __iget(struct inode * inode)
return
;
}
atomic_inc
(
&
inode
->
i_count
);
if
(
!
(
inode
->
i_state
&
(
I_DIRTY
|
I_LOCK
)))
{
list_del
(
&
inode
->
i_list
);
list_add
(
&
inode
->
i_list
,
&
inode_in_use
);
}
if
(
!
(
inode
->
i_state
&
(
I_DIRTY
|
I_LOCK
)))
list_move
(
&
inode
->
i_list
,
&
inode_in_use
);
inodes_stat
.
nr_unused
--
;
}
...
...
@@ -304,8 +302,7 @@ static int invalidate_list(struct list_head *head, struct super_block * sb, stru
invalidate_inode_buffers
(
inode
);
if
(
!
atomic_read
(
&
inode
->
i_count
))
{
hlist_del_init
(
&
inode
->
i_hash
);
list_del
(
&
inode
->
i_list
);
list_add
(
&
inode
->
i_list
,
dispose
);
list_move
(
&
inode
->
i_list
,
dispose
);
inode
->
i_state
|=
I_FREEING
;
count
++
;
continue
;
...
...
@@ -1017,10 +1014,8 @@ static void generic_forget_inode(struct inode *inode)
struct
super_block
*
sb
=
inode
->
i_sb
;
if
(
!
hlist_unhashed
(
&
inode
->
i_hash
))
{
if
(
!
(
inode
->
i_state
&
(
I_DIRTY
|
I_LOCK
)))
{
list_del
(
&
inode
->
i_list
);
list_add
(
&
inode
->
i_list
,
&
inode_unused
);
}
if
(
!
(
inode
->
i_state
&
(
I_DIRTY
|
I_LOCK
)))
list_move
(
&
inode
->
i_list
,
&
inode_unused
);
inodes_stat
.
nr_unused
++
;
spin_unlock
(
&
inode_lock
);
if
(
!
sb
||
(
sb
->
s_flags
&
MS_ACTIVE
))
...
...
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