mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 19:26:25 +00:00
fs: dcache fix LRU ordering
Fix ordering of LRU when moving referenced dentries to the head of the list (they should go to the head of the list in the same order as they were found from the tail, rather than reverse order). Signed-off-by: Nick Piggin <npiggin@suse.de> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
a731d12d6d
commit
c490d79bb7
1 changed files with 1 additions and 1 deletions
|
@ -481,7 +481,7 @@ restart:
|
|||
if ((flags & DCACHE_REFERENCED)
|
||||
&& (dentry->d_flags & DCACHE_REFERENCED)) {
|
||||
dentry->d_flags &= ~DCACHE_REFERENCED;
|
||||
list_move_tail(&dentry->d_lru, &referenced);
|
||||
list_move(&dentry->d_lru, &referenced);
|
||||
spin_unlock(&dentry->d_lock);
|
||||
} else {
|
||||
list_move_tail(&dentry->d_lru, &tmp);
|
||||
|
|
Loading…
Reference in a new issue