Commit ffdb99e0 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Linus Torvalds

[PATCH] put newly registered shrinkers at the tail of the list

This way we actually shake dentries before inodes and thus mark more
inodes reclaimable once we shake them.
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 8d80857d
......@@ -137,7 +137,7 @@ struct shrinker *set_shrinker(int seeks, shrinker_t theshrinker)
shrinker->seeks = seeks;
shrinker->nr = 0;
down_write(&shrinker_rwsem);
list_add(&shrinker->list, &shrinker_list);
list_add_tail(&shrinker->list, &shrinker_list);
up_write(&shrinker_rwsem);
}
return shrinker;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment