aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ac97_codec.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2010-01-27 12:20:03 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2010-01-27 12:20:03 -0500
commit0531b2aac59c2296570ac52bfc032ef2ace7d5e1 (patch)
tree4ca454bdc03c24654529bab9c882c1cd5f99a88c /include/linux/ac97_codec.h
parentcaf0801e0cc482497c14a9ce349469c33c60beec (diff)
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>
Diffstat (limited to 'include/linux/ac97_codec.h')
0 files changed, 0 insertions, 0 deletions