From: Roland Dreier Date: Fri, 19 Aug 2005 17:36:11 +0000 (-0700) Subject: [PATCH] IB/mthca: Handle context tables smaller than our chunk size X-Git-Tag: v2.6.14-rc1~1050^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d20a40192868082eff6fec729b311cb8463b4a21;p=pandora-kernel.git [PATCH] IB/mthca: Handle context tables smaller than our chunk size When creating a table in context memory where the table is smaller than our chunk size, we don't want to allocate and map a full chunk. Instead, allocate just enough memory to cover the table. This can be pretty simple because all tables are a power-of-2 size, so either the table is a multiple of the chunk size, or it's smaller than one chunk. Signed-off-by: Roland Dreier --- Reading git-diff-tree failed