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-12-03 13:49:43 +01:00
2009-04-01 08:59:13 -07:00
2010-01-11 09:34:06 -08:00
2009-06-16 19:47:28 -07:00
2009-12-15 08:53:20 -08:00
2009-09-22 07:17:35 -07:00
2009-12-30 12:23:27 -08:00
2009-12-15 08:53:16 -08:00
2007-10-20 01:27:18 +02:00
2009-12-17 15:45:32 -08:00
2009-12-16 19:48:48 -05:00
2009-12-28 20:57:27 +02:00
2009-12-15 08:53:19 -08:00
2009-06-23 12:50:05 -07:00
2010-01-13 16:09:33 -08:00