Mel Gorman
b44129b306
mm: vmstat: use a single setter function and callback for adjusting percpu thresholds
...
reduce_pgdat_percpu_threshold() and restore_pgdat_percpu_threshold() exist
to adjust the per-cpu vmstat thresholds while kswapd is awake to avoid
errors due to counter drift. The functions duplicate some code so this
patch replaces them with a single set_pgdat_percpu_threshold() that takes
a callback function to calculate the desired threshold as a parameter.
[akpm@linux-foundation.org: readability tweak]
[kosaki.motohiro@jp.fujitsu.com: set_pgdat_percpu_threshold(): don't use for_each_online_cpu]
Signed-off-by: Mel Gorman <mel@csn.ul.ie>
Reviewed-by: Christoph Lameter <cl@linux.com>
Reviewed-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2011-01-13 17:32:31 -08:00
..
2011-01-06 22:32:52 +00:00
2011-01-12 15:15:14 -08:00
2011-01-13 08:03:25 -08:00
2011-01-09 09:10:10 -08:00
2011-01-13 09:58:14 -08:00
2011-01-13 10:32:54 -08:00
2011-01-12 14:37:42 +09:00
2011-01-10 20:11:38 +01:00
2011-01-13 08:03:19 -08:00
2011-01-12 14:33:05 +00:00
2011-01-07 17:08:46 -08:00
2010-12-26 22:37:05 -08:00
2011-01-11 15:11:56 -08:00
2011-01-13 08:03:08 -08:00
2011-01-07 13:16:28 -08:00
2011-01-10 08:51:44 -08:00
2011-01-10 13:31:14 -08:00
2011-01-13 08:03:12 -08:00
2011-01-07 17:50:31 +11:00
2011-01-13 10:45:01 -08:00
2011-01-13 08:03:17 -08:00
2010-12-20 09:07:35 -08:00
2010-09-14 16:08:45 -07:00
2011-01-05 14:15:50 +01:00
2011-01-13 08:03:22 -08:00
2011-01-13 08:03:13 -08:00
2011-01-10 07:38:53 -08:00
2010-12-31 10:50:54 -08:00
2011-01-10 08:51:44 -08:00
2011-01-13 20:00:02 +00:00
2011-01-10 16:10:33 -08:00
2011-01-13 19:59:58 +00:00
2011-01-13 19:59:52 +00:00
2011-01-03 01:41:40 -08:00
2011-01-07 23:36:59 -05:00
2011-01-10 16:05:30 -08:00
2011-01-10 19:04:07 +01:00
2011-01-12 20:16:43 -05:00
2010-12-22 12:56:10 +09:00
2011-01-09 15:42:55 -08:00
2011-01-04 08:48:34 +01:00
2011-01-10 08:51:44 -08:00
2011-01-07 17:50:27 +11:00
2011-01-13 10:45:01 -08:00
2011-01-07 17:50:23 +11:00
2011-01-07 17:50:23 +11:00
2011-01-07 17:50:29 +11:00
2011-01-13 14:47:54 +01:00
2011-01-10 22:11:23 +01:00
2011-01-13 17:26:46 -08:00
2011-01-13 09:58:38 -08:00
2011-01-10 07:38:53 -08:00
2011-01-10 22:11:23 +01:00
2010-12-20 14:49:47 -05:00
2011-01-11 23:55:51 +01:00
2011-01-06 11:10:05 -08:00
2011-01-04 11:29:52 -08:00
2011-01-06 10:23:33 -08:00
2011-01-13 09:58:14 -08:00
2011-01-13 17:32:31 -08:00
2011-01-10 12:29:43 -05:00
2011-01-13 10:25:58 -08:00
2011-01-13 17:32:31 -08:00
2011-01-13 08:03:07 -08:00
2011-01-13 08:03:07 -08:00
2011-01-07 17:02:58 -08:00
2011-01-07 08:43:37 +01:00
2010-12-22 10:27:53 +01:00
2011-01-12 11:30:50 +02:00
2011-01-12 11:23:08 +02:00
2011-01-12 11:23:12 +02:00
2011-01-13 08:03:06 -08:00
2011-01-13 08:03:05 -08:00
2011-01-05 19:43:22 -05:00
2011-01-07 17:50:31 +11:00
2011-01-10 19:04:08 +01:00
2011-01-13 17:32:31 -08:00
2010-12-23 09:48:41 +01:00
2011-01-07 17:50:33 +11:00
2011-01-07 17:50:27 +11:00
2011-01-12 20:03:43 -05:00
2011-01-12 20:03:43 -05:00
2010-10-01 17:18:59 -04:00
2011-01-10 16:05:30 -08:00
2011-01-11 14:17:09 -05:00
2011-01-06 14:57:46 -05:00
2011-01-07 17:50:29 +11:00
2011-01-06 16:03:13 -05:00
2010-12-20 14:49:47 -05:00
2010-12-22 22:15:32 +01:00
2010-12-23 15:57:48 -07:00
2011-01-08 21:42:42 -07:00
2011-01-07 17:50:33 +11:00
2011-01-13 08:03:21 -08:00
2010-12-18 15:54:04 +01:00
2011-01-10 07:38:54 -08:00
2010-12-24 15:04:06 +01:00
2010-12-24 15:04:41 +01:00
2011-01-07 17:50:29 +11:00
2011-01-13 08:03:21 -08:00
2011-01-13 08:03:21 -08:00
2011-01-13 08:03:10 -08:00
2011-01-10 19:04:05 +01:00
2011-01-07 17:50:31 +11:00
2010-12-17 12:34:59 -08:00
2011-01-07 17:50:29 +11:00
2011-01-13 08:03:17 -08:00
2011-01-13 08:03:18 -08:00
2011-01-13 08:03:18 -08:00
2011-01-13 08:03:23 -08:00
2011-01-13 17:32:31 -08:00
2011-01-10 09:46:24 +11:00
2011-01-07 17:50:27 +11:00
2011-01-13 08:03:19 -08:00
2011-01-13 15:06:28 +09:00
2011-01-07 17:50:16 +11:00
2011-01-13 10:25:58 -08:00
2011-01-10 12:00:22 -05:00
2011-01-13 10:05:56 -08:00
2010-03-30 22:02:32 +09:00
2010-12-22 19:43:34 -08:00
2010-05-19 11:36:34 +03:00
2011-01-13 08:03:21 -08:00
2011-01-13 08:03:20 -08:00
2011-01-01 13:57:56 -08:00
2011-01-01 13:57:56 -08:00
2011-01-13 08:03:08 -08:00
2011-01-07 20:57:22 -05:00
2011-01-13 08:03:20 -08:00
2010-12-20 09:37:33 +01:00
2011-01-13 08:03:18 -08:00
2011-01-06 13:05:04 +10:00
2011-01-13 17:32:31 -08:00
2011-01-07 16:58:04 -08:00
2011-01-13 08:03:24 -08:00
2007-10-10 16:53:57 -07:00