slob: Define page struct fields used in mm_types.h
[deliverable/linux.git] / include / linux / mm_types.h
index dad95bdd06d798545cea969d9cd4b9091e8a3089..5922c345259272fac8db30b6f1bf4905301012b5 100644 (file)
@@ -53,7 +53,7 @@ struct page {
        struct {
                union {
                        pgoff_t index;          /* Our offset within mapping. */
-                       void *freelist;         /* slub first free object */
+                       void *freelist;         /* slub/slob first free object */
                };
 
                union {
@@ -81,11 +81,12 @@ struct page {
                                         */
                                        atomic_t _mapcount;
 
-                                       struct {
+                                       struct { /* SLUB */
                                                unsigned inuse:16;
                                                unsigned objects:15;
                                                unsigned frozen:1;
                                        };
+                                       int units;      /* SLOB */
                                };
                                atomic_t _count;                /* Usage count, see below. */
                        };
@@ -107,6 +108,8 @@ struct page {
                        short int pobjects;
 #endif
                };
+
+               struct list_head list;  /* slobs list of pages */
        };
 
        /* Remainder is not double word aligned */
This page took 0.025743 seconds and 5 git commands to generate.