Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757573Ab1DZUch (ORCPT ); Tue, 26 Apr 2011 16:32:37 -0400 Received: from e6.ny.us.ibm.com ([32.97.182.146]:41405 "EHLO e6.ny.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754071Ab1DZUcg (ORCPT ); Tue, 26 Apr 2011 16:32:36 -0400 Subject: Re: [PATCH 1/3] flex_array: flex_array_prealloc takes a number of elements, not an end From: Dave Hansen To: Eric Paris Cc: steffen.klassert@secunet.com, akpm@linux-foundation.org, linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org, selinux@tycho.nsa.gov, sds@tycho.nsa.gov In-Reply-To: <20110426014531.1740.24077.stgit@paris.rdu.redhat.com> References: <20110426014531.1740.24077.stgit@paris.rdu.redhat.com> Content-Type: text/plain; charset="ISO-8859-1" Date: Tue, 26 Apr 2011 13:32:21 -0700 Message-ID: <1303849941.9308.17353.camel@nimitz> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 909 Lines: 23 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 > Signed-off-by: Eric Paris 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/