[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <2f86c2480907221620u6da3a8e3h8273f6a9ee156f86@mail.gmail.com>
Date: Wed, 22 Jul 2009 16:20:57 -0700
From: Benjamin Blum <bblum@...gle.com>
To: Dave Hansen <dave@...ux.vnet.ibm.com>
Cc: akpm@...ux-foundation.org, containers@...ts.linux-foundation.org,
linux-kernel@...r.kernel.org, menage@...gle.com,
vda.linux@...glemail.com, mikew@...gle.com
Subject: Re: [RFCv2][PATCH] flexible array implementation
On Wed, Jul 22, 2009 at 2:51 PM, Dave Hansen<dave@...ux.vnet.ibm.com> wrote:
> On Wed, 2009-07-22 at 13:57 -0700, Benjamin Blum wrote:
>> Does the array automatically grow if you give it more elements than
>> you tell it it can have?
>
> The only limits it has or enforces are the structural and architectural
> ones dictated by the layout.
>
>> How about a resize() function that can be
>> used to either grow or shrink the array?
>
> I think growing is out of the question. It has a fixed maximum size
> already. As for shrinking, there's probably a use case for when
> something is large, then shrinks back down. But, I think I'd want to
> see a user for it, otherwise I'm just guessing at it too much.
>
> -- Dave
>
>
Check out the reallocate logic in pidlist_uniq from my patch (the
series you linked).
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists