Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 197966
b: refs/heads/master
c: 2e147f1
h: refs/heads/master
v: v3
  • Loading branch information
Richard Kennedy authored and Al Viro committed May 21, 2010
1 parent f5cc480 commit f29591d
Show file tree
Hide file tree
Showing 2 changed files with 3 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: a7cf4145bb86aaf85d4d4d29a69b50b688e2e49d
refs/heads/master: 2e147f1ef7d593b36c0e27a393b7d7ec0765f54b
6 changes: 2 additions & 4 deletions trunk/fs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -286,11 +286,9 @@ static void init_once(void *foo)
*/
void __iget(struct inode *inode)
{
if (atomic_read(&inode->i_count)) {
atomic_inc(&inode->i_count);
if (atomic_inc_return(&inode->i_count) != 1)
return;
}
atomic_inc(&inode->i_count);

if (!(inode->i_state & (I_DIRTY|I_SYNC)))
list_move(&inode->i_list, &inode_in_use);
inodes_stat.nr_unused--;
Expand Down

0 comments on commit f29591d

Please sign in to comment.