Skip to content

Commit

Permalink
Revert "SLUB: Fix build breakage in linux/mm_types.h"
Browse files Browse the repository at this point in the history
This reverts commit ea6bd8e.
  • Loading branch information
Pekka Enberg committed Jul 18, 2011
1 parent ea6bd8e commit 3adf004
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions include/linux/mm_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,27 +49,32 @@ struct page {
* see PAGE_MAPPING_ANON below.
*/
/* Second double word */
struct {
union {
union {
struct {
pgoff_t index; /* Our offset within mapping. */
void *freelist; /* slub first free object */
};

union {
atomic_t _mapcount; /* Count of ptes mapped in mms,
* to show when page is mapped
* & limit reverse map searches.
*/
atomic_t _count; /* Usage count, see below. */
};

/* Used for cmpxchg_double in slub */
unsigned long counters;
struct {
struct { /* SLUB cmpxchg_double area */
void *freelist;
union {
unsigned long counters;
struct {
unsigned inuse:16;
unsigned objects:15;
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 */
Expand Down

0 comments on commit 3adf004

Please sign in to comment.