X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=datapath%2Flinux%2Fcompat%2Fflex_array.c;h=1e6d9c18bc772d6b75b6bd830ea2c7a09c4ffe78;hb=6a542738b2a59f98831fa36e6208d388c007d0b8;hp=3b96b8e4600d61df4cfb4c769bac4f449bf22a54;hpb=135faefe4af624489ac310810a5ffb5223606252;p=openvswitch diff --git a/datapath/linux/compat/flex_array.c b/datapath/linux/compat/flex_array.c index 3b96b8e4..1e6d9c18 100644 --- a/datapath/linux/compat/flex_array.c +++ b/datapath/linux/compat/flex_array.c @@ -64,7 +64,7 @@ static inline int elements_fit_in_base(struct flex_array *fa) * page pointers that we can fit in the base structure or (using * integer math): * - * (PAGE_SIZE/element_size) * (PAGE_SIZE-8)/sizeof(void *) + * (PAGE_SIZE/element_size) * (PAGE_SIZE-8)/sizeof(void *) * * Here's a table showing example capacities. Note that the maximum * index that the get/put() functions is just nr_objects-1. This @@ -178,7 +178,7 @@ __fa_get_part(struct flex_array *fa, int part_nr, gfp_t flags) * flex_array_put - copy data into the array at @element_nr * @fa: the flex array to copy data into * @element_nr: index of the position in which to insert - * the new element. + * the new element. * @src: address of data to copy into the array * @flags: page allocation flags to use for array expansion * @@ -248,7 +248,8 @@ int flex_array_clear(struct flex_array *fa, unsigned int element_nr) /** * flex_array_prealloc - guarantee that array space exists * @fa: the flex array for which to preallocate parts - * @start: index of first array element for which space is allocated + * @start: index of first array element for which space is + * allocated * @nr_elements: number of elements for which space is allocated * @flags: page allocation flags *