Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 217819
b: refs/heads/master
c: d895a1c
h: refs/heads/master
i:
  217817: baf26a4
  217815: 0086e47
v: v3
  • Loading branch information
Christoph Hellwig authored and Al Viro committed Oct 26, 2010
1 parent 07a2e68 commit 921d110
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 19 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: 7ccf19a8042e343f8159f8a5fdd6a9422aa90c78
refs/heads/master: d895a1c96af8c2a0f6a5e0119695a7c6b92df8db
20 changes: 2 additions & 18 deletions trunk/fs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -482,26 +482,10 @@ static void dispose_list(struct list_head *head)
*/
static int invalidate_list(struct list_head *head, struct list_head *dispose)
{
struct list_head *next;
struct inode *inode, *next;
int busy = 0;

next = head->next;
for (;;) {
struct list_head *tmp = next;
struct inode *inode;

/*
* We can reschedule here without worrying about the list's
* consistency because the per-sb list of inodes must not
* change during umount anymore, and because iprune_sem keeps
* shrink_icache_memory() away.
*/
cond_resched_lock(&inode_lock);

next = next->next;
if (tmp == head)
break;
inode = list_entry(tmp, struct inode, i_sb_list);
list_for_each_entry_safe(inode, next, head, i_sb_list) {
if (inode->i_state & I_NEW)
continue;
if (atomic_read(&inode->i_count)) {
Expand Down

0 comments on commit 921d110

Please sign in to comment.