From: Christoph Lameter Date: Fri, 20 May 2011 14:42:48 +0000 (-0500) Subject: slub: Deal with hyperthetical case of PAGE_SIZE > 2M X-Git-Tag: v3.0-rc1~341^2^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e0c2ab67e48f77c2da0a5c826aac397792a214e;p=pandora-kernel.git slub: Deal with hyperthetical case of PAGE_SIZE > 2M kmalloc_index() currently returns -1 if the PAGE_SIZE is larger than 2M which seems to cause some concern since the callers do not check for -1. Insert a BUG() and add a comment to the -1 explaining that the code cannot be reached. Signed-off-by: Christoph Lameter Signed-off-by: Pekka Enberg --- Reading git-diff-tree failed