Re: [PATCH 04/13] mm: new shrinker API
From: Christoph Hellwig <hch@infradead.org>
Date: 2011-08-23 09:15:30
Also in:
linux-fsdevel, lkml
From: Christoph Hellwig <hch@infradead.org>
Date: 2011-08-23 09:15:30
Also in:
linux-fsdevel, lkml
/* * A callback you can register to apply pressure to ageable caches.
It's much more than just a single callback these days.
+ * @scan_objects will be made from the current reclaim context.
*/
struct shrinker {
int (*shrink)(struct shrinker *, struct shrink_control *sc);
+ long (*count_objects)(struct shrinker *, struct shrink_control *sc);
+ long (*scan_objects)(struct shrinker *, struct shrink_control *sc);Is shrink_object really such a good name for this method? -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>