Rusty Russell
8e1f936b73
mm: clean up and kernelify shrinker registration
...
I can never remember what the function to register to receive VM pressure
is called. I have to trace down from __alloc_pages() to find it.
It's called "set_shrinker()", and it needs Your Help.
1) Don't hide struct shrinker. It contains no magic.
2) Don't allocate "struct shrinker". It's not helpful.
3) Call them "register_shrinker" and "unregister_shrinker".
4) Call the function "shrink" not "shrinker".
5) Reduce the 17 lines of waffly comments to 13, but document it properly.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Cc: David Chinner <dgc@sgi.com>
Cc: Trond Myklebust <trond.myklebust@fys.uio.no>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-07-17 10:23:00 -07:00
..
2007-07-17 10:23:00 -07:00
2007-07-17 10:23:00 -07:00
2007-05-08 13:49:03 +10:00
2006-01-09 20:48:03 +01:00
2006-09-30 20:52:31 +02:00
2005-09-05 11:47:01 +10:00
2007-07-14 15:40:53 +10:00
2007-02-10 18:37:28 +11:00
2006-06-09 17:07:12 +10:00
2007-07-14 15:40:53 +10:00
2007-07-14 15:28:50 +10:00
2007-02-10 18:37:33 +11:00
2007-07-14 15:41:24 +10:00
2007-07-14 15:28:50 +10:00
2006-01-12 10:29:53 +11:00
2007-05-08 13:48:42 +10:00
2006-09-28 11:01:37 +10:00
2006-03-17 17:29:25 +11:00
2007-05-08 13:48:42 +10:00
2006-09-28 11:01:37 +10:00
2006-09-28 10:58:52 +10:00
2006-09-28 10:58:52 +10:00
2007-07-14 15:36:43 +10:00
2007-07-14 15:36:43 +10:00
2007-07-14 15:41:24 +10:00
2007-02-10 18:37:40 +11:00
2007-07-14 15:41:24 +10:00
2007-07-14 15:41:24 +10:00
2006-09-28 10:58:17 +10:00
2007-07-14 15:36:53 +10:00
2007-07-14 15:36:43 +10:00
2007-02-10 18:35:02 +11:00
2007-07-14 15:40:53 +10:00
2007-02-10 18:37:40 +11:00
2007-02-10 18:37:40 +11:00
2007-05-08 13:49:27 +10:00
2006-06-09 14:48:12 +10:00
2007-07-14 15:40:53 +10:00
2007-07-14 15:37:02 +10:00
2007-07-14 15:37:02 +10:00
2007-07-14 15:37:02 +10:00
2007-07-14 15:37:02 +10:00
2007-07-14 15:37:02 +10:00
2007-07-14 15:37:02 +10:00
2007-07-14 15:37:02 +10:00
2007-07-14 15:37:02 +10:00
2007-07-14 15:37:02 +10:00
2007-07-14 15:37:02 +10:00
2006-06-20 13:04:51 +10:00
2005-11-02 14:58:39 +11:00
2007-07-14 15:37:02 +10:00
2006-06-20 13:04:51 +10:00
2006-11-11 18:05:06 +11:00
2006-06-20 13:04:51 +10:00
2007-05-08 13:49:03 +10:00
2007-02-10 18:37:40 +11:00
2007-02-10 18:34:56 +11:00
2006-09-28 10:55:43 +10:00
2007-07-14 15:40:53 +10:00
2007-07-14 15:40:53 +10:00
2007-07-14 15:40:53 +10:00
2007-07-14 15:40:53 +10:00
2006-01-11 15:30:08 +11:00
2006-09-28 10:58:40 +10:00
2007-02-10 18:37:33 +11:00
2007-07-14 15:28:50 +10:00
2007-07-14 15:28:50 +10:00
2007-05-08 13:50:19 +10:00
2005-11-02 14:58:39 +11:00
2007-02-10 18:34:56 +11:00
2006-09-28 10:55:43 +10:00
2007-07-14 15:41:24 +10:00
2007-07-14 18:09:42 +10:00
2005-11-02 14:58:39 +11:00
2007-05-08 13:49:46 +10:00
2007-07-14 15:35:36 +10:00
2007-05-08 13:49:46 +10:00
2007-07-14 15:42:50 +10:00
2007-07-14 15:42:50 +10:00
2006-09-28 11:04:16 +10:00
2007-07-14 15:28:50 +10:00
2005-11-02 14:58:39 +11:00
2007-07-14 15:28:50 +10:00
2006-09-28 11:02:57 +10:00
2007-07-14 15:36:08 +10:00
2007-07-14 15:40:53 +10:00
2007-07-14 15:40:53 +10:00
2007-07-14 15:40:53 +10:00
2007-05-08 13:48:42 +10:00
2007-05-08 13:49:33 +10:00
2005-11-03 16:14:31 +11:00
2007-05-08 13:48:42 +10:00
2007-07-14 15:21:29 +10:00
2007-02-10 18:37:40 +11:00
2007-05-08 13:48:42 +10:00
2007-07-14 15:35:36 +10:00
2007-07-14 15:28:50 +10:00
2007-02-10 18:35:52 +11:00
2006-06-20 13:04:51 +10:00
2006-06-20 13:04:51 +10:00
2006-06-20 13:04:51 +10:00
2006-06-09 15:29:40 +10:00
2006-09-28 11:04:07 +10:00
2006-06-20 13:04:51 +10:00
2007-07-14 15:32:09 +10:00
2007-07-14 15:28:50 +10:00
2005-11-02 14:58:39 +11:00
2007-05-08 13:49:27 +10:00
2006-06-09 17:07:12 +10:00
2007-07-14 15:40:53 +10:00
2007-07-14 18:09:42 +10:00
2007-07-14 15:40:53 +10:00