Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 4665
b: refs/heads/master
c: 4120db4
h: refs/heads/master
i:
  4663: c1dbd6e
v: v3
  • Loading branch information
Artem B. Bityuckiy authored and Linus Torvalds committed Jul 12, 2005
1 parent 81ee3ed commit d50e3c0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 168a9fd6a1bf91041adf9909f6c72cf747f0ca8c
refs/heads/master: 4120db47198d21d8cd3b2cdbbe1ea6118a50bcd4
11 changes: 7 additions & 4 deletions trunk/fs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,13 @@ static void dispose_list(struct list_head *head)
if (inode->i_data.nrpages)
truncate_inode_pages(&inode->i_data, 0);
clear_inode(inode);

spin_lock(&inode_lock);
hlist_del_init(&inode->i_hash);
list_del_init(&inode->i_sb_list);
spin_unlock(&inode_lock);

wake_up_inode(inode);
destroy_inode(inode);
nr_disposed++;
}
Expand Down Expand Up @@ -317,8 +324,6 @@ static int invalidate_list(struct list_head *head, struct list_head *dispose)
inode = list_entry(tmp, struct inode, i_sb_list);
invalidate_inode_buffers(inode);
if (!atomic_read(&inode->i_count)) {
hlist_del_init(&inode->i_hash);
list_del(&inode->i_sb_list);
list_move(&inode->i_list, dispose);
inode->i_state |= I_FREEING;
count++;
Expand Down Expand Up @@ -439,8 +444,6 @@ static void prune_icache(int nr_to_scan)
if (!can_unuse(inode))
continue;
}
hlist_del_init(&inode->i_hash);
list_del_init(&inode->i_sb_list);
list_move(&inode->i_list, &freeable);
inode->i_state |= I_FREEING;
nr_pruned++;
Expand Down

0 comments on commit d50e3c0

Please sign in to comment.