提交 3adf004d 编写于 作者: P Pekka Enberg

Revert "SLUB: Fix build breakage in linux/mm_types.h"

This reverts commit ea6bd8ee.
上级 ea6bd8ee
...@@ -49,27 +49,32 @@ struct page { ...@@ -49,27 +49,32 @@ struct page {
* see PAGE_MAPPING_ANON below. * see PAGE_MAPPING_ANON below.
*/ */
/* Second double word */ /* Second double word */
struct {
union { union {
struct {
pgoff_t index; /* Our offset within mapping. */ pgoff_t index; /* Our offset within mapping. */
void *freelist; /* slub first free object */
};
union {
atomic_t _mapcount; /* Count of ptes mapped in mms, atomic_t _mapcount; /* Count of ptes mapped in mms,
* to show when page is mapped * to show when page is mapped
* & limit reverse map searches. * & limit reverse map searches.
*/ */
atomic_t _count; /* Usage count, see below. */
};
/* Used for cmpxchg_double in slub */ struct { /* SLUB cmpxchg_double area */
void *freelist;
union {
unsigned long counters; unsigned long counters;
struct { struct {
unsigned inuse:16; unsigned inuse:16;
unsigned objects:15; unsigned objects:15;
unsigned frozen:1; unsigned frozen:1;
/*
* Kernel may make use of this field even when slub
* uses the rest of the double word!
*/
atomic_t _count;
};
}; };
}; };
atomic_t _count; /* Usage count, see below. */
}; };
/* Third double word block */ /* Third double word block */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册