From: Linus Torvalds Date: Wed, 27 Jan 2010 17:20:03 +0000 (-0800) Subject: mm: add new 'read_cache_page_gfp()' helper function X-Git-Tag: v2.6.33-rc6~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0531b2aac59c2296570ac52bfc032ef2ace7d5e1;p=pandora-kernel.git 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 Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed