From: Johannes Weiner Date: Wed, 6 Aug 2014 23:05:49 +0000 (-0700) Subject: mm: huge_memory: use GFP_TRANSHUGE when charging huge pages X-Git-Tag: cleanup-for-v3.18~96^2~157 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d51d885bbb137cc8e1704e76be1846c5e0d5e8b4;p=pandora-kernel.git mm: huge_memory: use GFP_TRANSHUGE when charging huge pages Transparent huge page charges prefer falling back to regular pages rather than spending a lot of time in direct reclaim. Desired reclaim behavior is usually declared in the gfp mask, but THP charges use GFP_KERNEL and then rely on the fact that OOM is disabled for THP charges, and that OOM-disabled charges don't retry reclaim. Needless to say, this is anything but obvious and quite error prone. Convert THP charges to use GFP_TRANSHUGE instead, which implies __GFP_NORETRY, to indicate the low-latency requirement. Signed-off-by: Johannes Weiner Acked-by: Michal Hocko Cc: Hugh Dickins Cc: Tejun Heo Cc: Vladimir Davydov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed