From: Balbir Singh Date: Thu, 7 Feb 2008 08:14:05 +0000 (-0800) Subject: memory controller BUG_ON() X-Git-Tag: v2.6.25-rc1~465 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=35c754d79f4da80d5e8972f6403dd26f7962fd88;p=pandora-kernel.git memory controller BUG_ON() Move mem_controller_cache_charge() above radix_tree_preload(). radix_tree_preload() disables preemption, even though the gfp_mask passed contains __GFP_WAIT, we cannot really do __GFP_WAIT allocations, thus we hit a BUG_ON() in kmem_cache_alloc(). This patch moves mem_controller_cache_charge() to above radix_tree_preload() for cache charging. Signed-off-by: Balbir Singh Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed