Thread (3 messages) 3 messages, 3 authors, 2012-06-01

Re: Common 04/22] [slab] Use page struct fields instead of casting

From: JoonSoo Kim <hidden>
Date: 2012-06-01 13:17:20

quoted
Index: linux-2.6/include/linux/mm_types.h
===================================================================
--- linux-2.6.orig/include/linux/mm_types.h   2012-05-22 09:05:49.716464025 -0500
+++ linux-2.6/include/linux/mm_types.h        2012-05-22 09:21:28.532444572 -0500
@@ -90,6 +90,10 @@ struct page {
                              atomic_t _count;                /* Usage count, see below. */
                      };
              };
+             struct {                /* SLAB */
+                     struct kmem_cache *slab_cache;
+                     struct slab *slab_page;
+             };
      };

      /* Third double word block */
The lru fields are in the third double word block.
Yes.
This patch is different with "Common functionality V2 - [2/12]" which I review.
I think fix is needed.
¢éì¹»
®&Þ±éÝjg¬±¨
Â+aº{.nÇ+‰·¥Š{±šh§¶›¡Ü­¢f£¢·hš‰/iÉ(®h®j+z)ߢ‰ËŠ{±0Ë
zm§ÿðÃ	bžìfšŠàüX †Û§}¨«µé^r‰¢ž×«ë\
ªàzȧ	©Úu«"‚xm¶Ÿÿ²Ú)¶¦z׫q¯Ã¢{^™¨¥jÞ~f¢–Ú
¢{d½§$¢¸
™¨¥’öœ’Šàý
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help