From: Nick Piggin Date: Tue, 25 May 2010 08:25:26 +0000 (+0200) Subject: fs/splice.c: fix mapping_gfp_mask usage X-Git-Tag: v2.6.35-rc2~12^2~21 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0ae0b5d0557264bad65e22f1e2da4b83a02c4535;p=pandora-kernel.git fs/splice.c: fix mapping_gfp_mask usage mapping_gfp_mask() is not supposed to store allocation contex details, only page location details. So mapping_gfp_mask should be applied to the pagecache page allocation, wheras normal (kernel mapped) memory should be used for surrounding allocations such as radix-tree nodes allocated by add_to_page_cache. Context modifiers should be applied on a per-callsite basis. So change splice to follow this convention (which is followed in similar code patterns in core code). Signed-off-by: Nick Piggin Signed-off-by: Andrew Morton Signed-off-by: Jens Axboe --- Reading git-diff-tree failed