Re: [PATCH 1/3] flex_array: flex_array_prealloc takes a number ofelements, not an end

From: Dave Hansen
Date: Tue Apr 26 2011 - 16:32:40 EST


On Mon, 2011-04-25 at 21:45 -0400, Eric Paris wrote:
> 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.
>
> Based-on-patch-by: Steffen Klassert <steffen.klassert@xxxxxxxxxxx>
> Signed-off-by: Eric Paris <eparis@xxxxxxxxxx>

Perhaps add this to the description?

flex_arrays got introduced before they had users. When folks started
using it, they ended up needing a different API than we coded up
originally. This swaps over to the API that folks apparently need.

Acked-by: Dave Hansen <dave@xxxxxxxxxxxxxxxxxx>

-- Dave

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/