Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 40405
b: refs/heads/master
c: 6eac3f9
h: refs/heads/master
i:
  40403: cb958b1
v: v3
  • Loading branch information
Vasily Averin authored and Linus Torvalds committed Oct 28, 2006
1 parent 9c4942d commit 5a20869
Show file tree
Hide file tree
Showing 2 changed files with 6 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: ebed4bfc8da8df5b6b0bc4a5064a949f04683509
refs/heads/master: 6eac3f93f5e6b7256fb20b7608d62ec192da12be
9 changes: 5 additions & 4 deletions trunk/fs/dcache.c
Original file line number Diff line number Diff line change
Expand Up @@ -478,11 +478,12 @@ static void prune_dcache(int count, struct super_block *sb)
up_read(s_umount);
}
spin_unlock(&dentry->d_lock);
/* Cannot remove the first dentry, and it isn't appropriate
* to move it to the head of the list, so give up, and try
* later
/*
* Insert dentry at the head of the list as inserting at the
* tail leads to a cycle.
*/
break;
list_add(&dentry->d_lru, &dentry_unused);
dentry_stat.nr_unused++;
}
spin_unlock(&dcache_lock);
}
Expand Down

0 comments on commit 5a20869

Please sign in to comment.