]> Pileus Git - ~andy/linux/blobdiff - include/linux/mm_types.h
slub: per cpu cache for partial pages
[~andy/linux] / include / linux / mm_types.h
index 774b8952deb46cff7ab12a76936f1cad25ebae4d..7870e473033cacb50bb931450616b285c1b027fd 100644 (file)
@@ -79,9 +79,21 @@ struct page {
        };
 
        /* Third double word block */
-       struct list_head lru;           /* Pageout list, eg. active_list
+       union {
+               struct list_head lru;   /* Pageout list, eg. active_list
                                         * protected by zone->lru_lock !
                                         */
+               struct {                /* slub per cpu partial pages */
+                       struct page *next;      /* Next partial slab */
+#ifdef CONFIG_64BIT
+                       int pages;      /* Nr of partial slabs left */
+                       int pobjects;   /* Approximate # of objects */
+#else
+                       short int pages;
+                       short int pobjects;
+#endif
+               };
+       };
 
        /* Remainder is not double word aligned */
        union {