Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 217816
b: refs/heads/master
c: 99a3891
h: refs/heads/master
v: v3
  • Loading branch information
Christoph Hellwig authored and Al Viro committed Oct 26, 2010
1 parent 0086e47 commit 1d23231
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 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: 4d4eb36679adbdd75495e1bbfe7ac40e4ae41dea
refs/heads/master: 99a38919241fd051b8d93b2e4d0c05ef0556d795
16 changes: 7 additions & 9 deletions trunk/fs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
/*
* This is needed for the following functions:
* - inode_has_buffers
* - invalidate_inode_buffers
* - invalidate_bdev
*
* FIXME: remove all knowledge of the buffer layer from this file
Expand Down Expand Up @@ -503,16 +502,15 @@ static int invalidate_list(struct list_head *head, struct list_head *dispose)
inode = list_entry(tmp, struct inode, i_sb_list);
if (inode->i_state & I_NEW)
continue;
invalidate_inode_buffers(inode);
if (!atomic_read(&inode->i_count)) {
list_move(&inode->i_list, dispose);
WARN_ON(inode->i_state & I_NEW);
inode->i_state |= I_FREEING;
if (!(inode->i_state & (I_DIRTY | I_SYNC)))
percpu_counter_dec(&nr_inodes_unused);
if (atomic_read(&inode->i_count)) {
busy = 1;
continue;
}
busy = 1;

list_move(&inode->i_list, dispose);
inode->i_state |= I_FREEING;
if (!(inode->i_state & (I_DIRTY | I_SYNC)))
percpu_counter_dec(&nr_inodes_unused);
}
return busy;
}
Expand Down

0 comments on commit 1d23231

Please sign in to comment.