Balbir Singh
e1a1cd590e
Memory controller: make charging gfp mask aware
...
Nick Piggin pointed out that swap cache and page cache addition routines
could be called from non GFP_KERNEL contexts. This patch makes the
charging routine aware of the gfp context. Charging might fail if the
cgroup is over it's limit, in which case a suitable error is returned.
This patch was tested on a Powerpc box. I am still looking at being able
to test the path, through which allocations happen in non GFP_KERNEL
contexts.
[kamezawa.hiroyu@jp.fujitsu.com: problem with ZONE_MOVABLE]
Signed-off-by: Balbir Singh <balbir@linux.vnet.ibm.com>
Cc: Pavel Emelianov <xemul@openvz.org>
Cc: Paul Menage <menage@google.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Nick Piggin <nickpiggin@yahoo.com.au>
Cc: Kirill Korotaev <dev@sw.ru>
Cc: Herbert Poetzl <herbert@13thfloor.at>
Cc: David Rientjes <rientjes@google.com>
Cc: Vaidyanathan Srinivasan <svaidy@linux.vnet.ibm.com>
Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-02-07 08:42:19 -08:00
..
2008-02-06 10:41:15 -08:00
2008-02-01 16:42:02 -05:00
2008-02-01 16:42:06 -05:00
2008-02-06 10:41:19 -08:00
2008-02-05 09:44:13 -08:00
2008-02-05 14:35:47 -05:00
2008-02-01 16:42:15 -05:00
2008-02-05 03:20:13 -08:00
2008-02-01 14:35:07 -08:00
2008-02-06 10:41:02 -08:00
2008-02-06 10:41:10 -08:00
2008-02-05 14:33:32 +10:00
2008-02-05 14:33:32 +10:00
2008-02-06 10:12:18 -07:00
2008-02-06 06:54:17 -05:00
2008-02-04 13:16:39 +00:00
2008-02-01 14:23:55 -05:00
2008-02-01 11:34:49 +01:00
2008-02-05 09:44:20 -08:00
2008-02-01 23:09:24 +01:00
2008-02-07 08:42:18 -08:00
2008-02-03 17:45:46 +02:00
2008-02-06 10:41:03 -08:00
2008-02-06 22:39:44 +01:00
2008-02-03 17:45:46 +02:00
2008-02-03 15:42:53 +02:00
2008-02-03 04:28:53 -08:00
2008-02-05 09:44:10 -08:00
2008-02-05 09:44:11 -08:00
2008-02-06 10:12:18 -07:00
2008-02-07 08:42:06 -08:00
2008-02-03 17:45:46 +02:00
2008-02-07 08:42:16 -08:00
2008-02-06 10:41:05 -08:00
2008-02-01 17:45:14 +01:00
2008-02-05 09:44:17 -08:00
2008-02-06 10:41:00 -08:00
2008-02-05 13:31:39 -05:00
2008-02-03 15:42:53 +02:00
2008-02-01 23:09:34 +01:00
2008-02-05 09:44:19 -08:00
2008-02-05 09:44:07 -08:00
2008-02-05 09:44:23 -08:00
2008-02-06 02:57:51 +01:00
2008-02-01 16:13:16 -05:00
2008-02-05 16:20:22 -08:00
2008-01-31 19:28:31 -08:00
2008-02-05 09:44:20 -08:00
2008-02-06 22:39:45 +01:00
2008-02-06 10:41:02 -08:00
2008-02-05 09:44:11 -08:00
2008-01-31 19:28:20 -08:00
2008-02-06 10:41:07 -08:00
2008-02-06 10:41:21 -08:00
2008-02-05 03:18:51 -08:00
2008-02-06 10:41:04 -08:00
2008-02-06 10:41:11 -08:00
2008-02-05 09:44:23 -08:00
2008-02-04 23:49:57 +11:00
2008-02-06 06:59:32 -05:00
2008-02-03 17:45:46 +02:00
2008-02-06 10:41:03 -08:00
2008-02-06 10:41:01 -08:00
2008-02-06 10:41:01 -08:00
2008-02-07 08:42:19 -08:00
2008-02-05 09:44:23 -08:00
2008-02-07 08:42:18 -08:00
2008-02-05 09:44:16 -08:00
2008-02-05 09:44:18 -08:00
2008-02-05 09:44:08 -08:00
2008-01-31 19:28:24 -08:00
2008-01-31 19:28:23 -08:00
2008-02-01 16:42:05 -05:00
2008-02-01 18:30:53 -05:00
2008-02-05 09:44:24 -08:00
2008-02-05 09:44:19 -08:00
2008-02-06 10:41:08 -08:00
2008-02-02 11:32:01 -08:00
2008-02-01 15:04:29 -08:00
2008-02-05 09:44:12 -08:00
2008-02-02 02:44:34 +03:00
2008-02-06 10:41:04 -08:00
2008-02-03 04:28:41 -08:00
2008-02-05 16:21:04 -08:00
2008-01-31 19:28:35 -08:00
2008-02-05 09:44:22 -08:00
2008-02-03 17:45:46 +02:00
2008-02-06 10:41:20 -08:00
2008-02-02 02:43:00 +03:00
2008-02-05 09:44:20 -08:00
2008-02-05 09:44:16 -08:00
2008-02-06 10:41:07 -08:00
2008-02-03 16:12:47 +02:00
2008-02-06 10:41:06 -08:00
2008-02-05 09:44:22 -08:00
2008-02-03 15:42:53 +02:00
2008-02-07 08:42:18 -08:00
2008-02-07 08:42:19 -08:00
2008-02-05 03:17:22 -08:00
2008-02-07 08:42:18 -08:00
2008-02-05 09:44:20 -08:00
2008-02-05 09:44:09 -08:00
2008-02-06 10:41:02 -08:00
2008-02-03 15:12:15 +02:00
2008-02-04 23:49:56 +11:00
2008-02-04 10:56:03 -08:00
2008-02-03 17:45:46 +02:00
2008-02-06 10:41:16 -08:00
2008-01-31 19:28:30 -08:00
2008-02-03 17:45:46 +02:00
2008-02-01 18:30:53 -05:00
2008-02-05 09:44:17 -08:00
2008-02-07 08:42:19 -08:00
2008-02-05 09:44:16 -08:00
2008-02-05 09:44:07 -08:00
2008-02-05 09:44:20 -08:00
2008-02-01 17:45:14 +01:00
2008-02-01 17:45:14 +01:00
2008-02-01 17:45:13 +01:00
2008-02-06 10:41:02 -08:00
2008-02-07 08:42:16 -08:00
2008-02-01 14:34:49 -08:00
2008-02-01 14:35:07 -08:00
2008-02-01 14:34:58 -08:00
2008-02-04 23:50:13 +11:00
2008-02-04 23:50:01 +11:00
2008-02-04 23:50:03 +11:00
2008-02-04 23:50:02 +11:00
2008-02-04 23:50:12 +11:00
2008-02-04 23:50:00 +11:00
2008-02-04 23:50:03 +11:00
2008-02-05 09:44:14 -08:00
2008-02-06 10:41:03 -08:00
2008-02-06 10:41:15 -08:00
2008-02-05 09:44:07 -08:00
2008-02-03 15:42:53 +02:00
2008-02-05 09:44:19 -08:00
2008-02-05 09:44:20 -08:00