lkml.org 
[lkml]   [2009]   [Jul]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [RFC][PATCH] flexible array implementation
From
On Tue, Jul 21, 2009 at 6:03 PM, Dave Hansen<dave@linux.vnet.ibm.com> wrote:
> +static inline struct flex_array_part *
> +__fa_get_part(struct flex_array *fa, int part_nr, gfp_t flags)
> +{
> +       struct flex_array_part *part = NULL;
> +       if (part_nr > __nr_part_ptrs())
> +               return NULL;
> +       part = fa->parts[part_nr];
> +       if (!part) {
> +               part = kmalloc(FLEX_ARRAY_PART_SIZE, flags);
> +               if (!part)
> +                       return NULL;
> +               fa->parts[part_nr] = part;
> +       }
> +       return part;
> +}

This is far too big to be an inline.

--
vda
--
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/

\
 
 \ /
  Last update: 2009-07-21 19:01    [W:0.056 / U:7.256 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site