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½§$¢¸
¨¥öàý