Linus Torvalds
0531b2aac5
mm: add new 'read_cache_page_gfp()' helper function
...
It's a simplified 'read_cache_page()' which takes a page allocation
flag, so that different paths can control how aggressive the memory
allocations are that populate a address space.
In particular, the intel GPU object mapping code wants to be able to do
a certain amount of own internal memory management by automatically
shrinking the address space when memory starts getting tight. This
allows it to dynamically use different memory allocation policies on a
per-allocation basis, rather than depend on the (static) address space
gfp policy.
The actual new function is a one-liner, but re-organizing the helper
functions to the point where you can do this with a single line of code
is what most of the patch is all about.
Tested-by: Chris Wilson <chris@chris-wilson.co.uk >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2010-01-27 09:20:03 -08:00
..
2009-01-06 18:10:26 -08:00
2009-12-13 19:47:42 -08:00
2010-01-11 09:34:04 -08:00
2009-09-19 00:51:34 -03:00
2010-01-11 09:34:07 -08:00
2009-12-09 19:52:01 -08:00
2009-09-22 07:54:33 -07:00
2010-01-18 12:30:27 +01:00
2010-01-13 09:04:53 +00:00
2009-12-03 13:23:12 -08:00
2009-12-15 15:01:46 -05:00
2009-12-14 12:49:47 +11:00
2009-12-17 10:27:27 +00:00
2009-12-17 15:59:05 -08:00
2009-12-16 10:47:44 -08:00
2009-12-23 08:53:31 -08:00
2008-02-06 10:41:02 -08:00
2010-01-06 16:18:15 -05:00
2009-12-16 07:20:13 -08:00
2009-09-01 01:14:07 -07:00
2009-02-08 09:56:11 -08:00
2009-12-15 08:53:35 -08:00
2009-09-15 09:50:47 -07:00
2009-12-16 11:33:46 +00:00
2009-12-17 15:45:31 -08:00
2009-12-16 07:20:18 -08:00
2010-01-11 14:29:20 +01:00
2009-06-16 19:47:48 -07:00
2008-04-28 08:58:19 -07:00
2009-11-24 15:06:47 +11:00
2008-06-04 14:56:12 +01:00
2008-01-30 13:32:42 +01:00
2009-12-15 08:53:28 -08:00
2009-12-15 08:53:32 -08:00
2009-04-14 11:11:52 +02:00
2009-09-24 07:20:57 -07:00
2009-12-10 23:52:27 +00:00
2009-12-23 11:23:43 -08:00
2009-12-10 23:52:01 +00:00
2009-12-10 23:52:22 +00:00
2009-12-10 23:52:05 +00:00
2009-12-10 23:43:19 -07:00
2007-02-09 17:39:36 -05:00
2010-01-12 10:02:46 +01:00
2010-01-12 10:14:42 +01:00
2009-12-15 08:53:25 -08:00
2009-12-15 08:53:33 -08:00
2009-12-18 17:43:32 +01:00
2009-12-10 08:54:14 -06:00
2009-12-15 08:53:27 -08:00
2009-11-04 09:50:58 -08:00
2009-05-05 12:26:24 -07:00
2009-12-03 13:18:04 -08:00
2010-01-25 12:26:38 -02:00
2009-12-10 15:02:51 +01:00
2009-12-23 13:44:12 +01:00
2009-12-10 15:02:53 +01:00
2009-12-23 13:33:54 +01:00
2009-12-10 09:34:40 -08:00
2009-12-17 20:55:57 -08:00
2009-12-16 12:16:42 -05:00
2009-12-29 19:58:16 +01:00
2009-12-29 19:58:16 +01:00
2009-12-11 11:24:52 -08:00
2009-12-17 10:58:17 -05:00
2009-03-31 23:00:26 -04:00
2010-01-14 09:05:26 -05:00
2009-12-13 18:37:28 +01:00
2006-10-02 07:57:12 -07:00
2009-12-16 12:16:49 -05:00
2010-01-11 14:32:44 +01:00
2006-09-30 01:47:55 +02:00
2009-12-16 07:20:01 -08:00
2010-01-11 09:34:03 -08:00
2009-12-14 23:55:34 +01:00
2009-12-15 08:53:12 -08:00
2009-12-14 10:10:55 -08:00
2009-02-24 19:19:49 +01:00
2009-12-14 21:17:29 +01:00
2009-12-11 23:55:42 -08:00
2009-12-21 11:32:27 -05:00
2009-12-16 12:16:47 -05:00
2009-12-09 19:43:33 -08:00
2009-12-25 17:30:22 -08:00
2009-12-17 13:23:24 -08:00
2009-12-15 20:42:06 +01:00
2009-12-02 23:38:13 -08:00
2009-11-04 14:22:21 +01:00
2010-01-11 14:29:20 +01:00
2009-12-16 07:20:18 -08:00
2009-12-16 07:20:17 -08:00
2007-04-25 22:25:31 -07:00
2009-12-16 07:20:10 -08:00
2009-09-26 10:17:19 -07:00
2006-10-04 00:31:09 -07:00
2009-12-14 23:55:33 +01:00
2009-12-11 15:18:07 -08:00
2009-12-23 06:52:08 -05:00
2009-12-15 08:53:26 -08:00
2009-12-12 13:08:15 +01:00
2007-04-04 21:12:47 -07:00
2009-12-16 12:19:59 +01:00
2010-01-16 12:15:39 -08:00
2008-04-18 22:16:54 -04:00
2009-12-16 07:20:13 -08:00
2009-09-02 21:29:22 +10:00
2010-01-16 12:15:38 -08:00
2010-01-07 11:58:37 -06:00
2010-01-11 09:34:04 -08:00
2009-12-31 19:45:04 +00:00
2008-04-30 08:29:54 -07:00
2009-12-16 06:56:12 -08:00
2008-07-24 19:11:15 -07:00
2009-12-17 11:41:51 +00:00
2009-12-17 11:33:33 +00:00
2009-12-17 11:27:09 +00:00
2010-01-12 14:34:14 -05:00
2009-12-15 08:53:36 -08:00
2010-01-12 21:02:00 -08:00
2009-12-12 22:24:32 -07:00
2009-10-01 21:17:49 +02:00
2009-12-16 12:36:49 -08:00
2009-12-15 08:53:20 -08:00
2009-12-18 14:53:36 +11:00
2009-12-15 08:53:12 -08:00
2009-12-15 08:53:20 -08:00
2010-01-16 12:15:40 -08:00
2010-01-16 12:15:40 -08:00
2009-12-12 13:08:15 +01:00
2005-04-16 15:20:36 -07:00
2009-12-12 13:08:14 +01:00
2009-12-17 12:51:05 -08:00
2009-12-15 16:28:26 +10:30
2009-01-05 08:40:13 +10:30
2009-10-29 08:56:17 +10:30
2009-04-01 07:38:54 -04:00
2006-11-30 04:40:22 +01:00
2009-12-22 12:27:34 -05:00
2009-12-16 10:43:34 -08:00
2009-12-14 18:12:08 -05:00
2009-12-15 08:53:13 -08:00
2009-12-15 08:53:13 -08:00
2009-03-31 23:00:27 -04:00
2009-12-15 08:53:12 -08:00
2009-12-09 12:12:44 +02:00
2009-12-16 07:19:57 -08:00
2009-12-16 07:20:07 -08:00
2009-12-17 07:23:42 -08:00
2010-01-27 09:20:03 -08:00
2005-04-16 15:20:36 -07:00
2008-10-13 10:10:37 -07:00
2009-12-12 14:27:24 -08:00
2010-01-04 15:41:47 -08:00
2010-01-21 13:40:40 +01:00
2005-04-16 15:20:36 -07:00
2008-01-23 19:33:58 -06:00
2010-01-19 01:59:02 -08:00
2009-12-11 11:24:55 -08:00
2009-12-14 23:55:33 +01:00
2009-12-15 08:53:25 -08:00
2009-12-15 17:35:26 -05:00
2010-01-11 09:45:37 -08:00
2009-12-16 07:20:08 -08:00
2009-12-17 11:46:01 +00:00
2009-12-23 13:33:54 +01:00
2009-12-17 09:46:44 +01:00
2009-12-17 09:46:44 +01:00
2010-01-02 11:17:05 -08:00
2010-01-04 11:33:58 +01:00
2009-12-15 08:53:20 -08:00
2006-07-13 13:21:35 -07:00
2009-04-01 08:59:24 -07:00
2009-12-14 23:55:33 +01:00
2009-12-15 20:56:42 -08:00
2009-12-14 23:55:33 +01:00
2009-12-14 23:55:32 +01:00
2009-12-14 23:55:33 +01:00
2009-12-15 08:53:26 -08:00
2010-01-16 12:15:40 -08:00
2009-12-17 09:25:19 +11:00
2007-10-16 09:43:17 -07:00
2009-12-16 07:20:10 -08:00
2008-04-25 00:25:08 +02:00
2010-01-06 00:14:32 -08:00
2009-05-03 17:57:17 +09:00
2009-12-16 12:16:49 -05:00
2009-12-11 09:17:02 +01:00
2009-12-11 09:17:02 +01:00
2009-12-16 07:20:04 -08:00
2009-12-16 22:32:29 -05:00
2009-12-14 23:55:33 +01:00
2009-12-14 23:55:33 +01:00
2009-12-14 23:55:32 +01:00
2009-12-14 23:55:32 +01:00
2009-12-14 23:55:32 +01:00
2009-12-14 23:55:33 +01:00
2009-10-26 09:40:30 +01:00
2009-06-12 23:04:12 +02:00
2008-10-03 11:46:14 -05:00
2010-01-14 22:38:09 -05:00
2009-12-15 08:53:16 -08:00
2009-12-30 10:27:04 -05:00
2009-12-25 17:30:22 -08:00
2008-07-21 21:55:02 -07:00
2009-12-23 11:23:43 -08:00
2009-01-31 00:08:18 +05:30
2009-04-06 11:14:03 +02:00
2008-12-30 09:05:12 +10:30
2009-12-16 07:20:00 -08:00
2009-02-18 15:37:53 -08:00
2010-01-21 13:39:03 +01:00
2009-12-09 14:05:49 -05:00
2009-12-16 07:20:08 -08:00
2010-01-16 12:15:38 -08:00
2009-06-19 08:08:50 +02:00
2010-01-07 11:58:36 -06:00
2007-10-19 11:53:42 -07:00
2009-12-11 11:55:26 -08:00
2010-01-20 15:24:35 -08:00
2009-12-10 22:55:37 +01:00
2009-12-12 13:08:15 +01:00
2009-12-16 09:27:16 -02:00
2009-12-15 08:53:16 -08:00
2009-12-17 15:45:30 -08:00
2009-11-16 01:09:48 +09:00
2009-12-23 07:57:07 -05:00
2009-12-16 12:16:49 -05:00