Revision 0531b2aac59c2296570ac52bfc032ef2ace7d5e1 authored by Linus Torvalds on 27 January 2010, 17:20:03 UTC, committed by Linus Torvalds on 27 January 2010, 17:20:03 UTC
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>
1 parent caf0801
File | Mode | Size |
---|---|---|
integrity | ||
keys | ||
selinux | ||
smack | ||
tomoyo | ||
Kconfig | -rw-r--r-- | 6.2 KB |
Makefile | -rw-r--r-- | 835 bytes |
capability.c | -rw-r--r-- | 24.5 KB |
commoncap.c | -rw-r--r-- | 26.3 KB |
device_cgroup.c | -rw-r--r-- | 11.7 KB |
inode.c | -rw-r--r-- | 8.8 KB |
lsm_audit.c | -rw-r--r-- | 8.7 KB |
min_addr.c | -rw-r--r-- | 1.3 KB |
security.c | -rw-r--r-- | 33.5 KB |
Computing file changes ...