X-Git-Url: http://git.samba.org/samba.git/?a=blobdiff_plain;f=Documentation%2Fflexible-arrays.txt;h=df904aec99044f8056ac530b9e9dc6de8f26f73e;hb=751516f0a9bad32544f40f471037c0e45fb639c9;hp=cb8a3a00cc92694947cb72840ddbcb340407ce08;hpb=52c7b3f45dbf19359be60a95b8678656e73ce42b;p=sfrench%2Fcifs-2.6.git diff --git a/Documentation/flexible-arrays.txt b/Documentation/flexible-arrays.txt index cb8a3a00cc92..df904aec9904 100644 --- a/Documentation/flexible-arrays.txt +++ b/Documentation/flexible-arrays.txt @@ -66,10 +66,10 @@ trick is to ensure that any needed memory allocations are done before entering atomic context, using: int flex_array_prealloc(struct flex_array *array, unsigned int start, - unsigned int end, gfp_t flags); + unsigned int nr_elements, gfp_t flags); This function will ensure that memory for the elements indexed in the range -defined by start and end has been allocated. Thereafter, a +defined by start and nr_elements has been allocated. Thereafter, a flex_array_put() call on an element in that range is guaranteed not to block.