From: Eric Paris Date: Thu, 28 Apr 2011 19:55:52 +0000 (-0400) Subject: flex_array: flex_array_prealloc takes a number of elements, not an end X-Git-Tag: v2.6.39-rc7~20^2^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d30b10bd68df007e7ae21e77d1e0ce184b53040;p=pandora-kernel.git flex_array: flex_array_prealloc takes a number of elements, not an end Change flex_array_prealloc to take the number of elements for which space should be allocated instead of the last (inclusive) element. Users and documentation are updated accordingly. flex_arrays got introduced before they had users. When folks started using it, they ended up needing a different API than was coded up originally. This swaps over to the API that folks apparently need. Based-on-patch-by: Steffen Klassert Signed-off-by: Eric Paris Tested-by: Chris Richards Acked-by: Dave Hansen Cc: stable@kernel.org [2.6.38+] --- Reading git-diff-tree failed