flex_array: avoid divisions when accessing elements
[linux-2.6.git] / include / linux / flex_array.h
index ebeb2f3..6843cf1 100644 (file)
@@ -21,6 +21,8 @@ struct flex_array {
                struct {
                        int element_size;
                        int total_nr_elements;
+                       int elems_per_part;
+                       u32 reciprocal_elems;
                        struct flex_array_part *parts[];
                };
                /*