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

From: Christoph Hellwig
Date: Wed Mar 02 2005 - 00:03:41 EST


This way we actually share dentries before inodes and thus mark more
inodes reclaimable once we shake them.


--- 1.240/mm/vmscan.c 2005-02-04 01:53:32 +01:00
+++ edited/mm/vmscan.c 2005-03-02 07:09:00 +01:00
@@ -137,7 +137,7 @@ struct shrinker *set_shrinker(int seeks,
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;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/