aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorPekka Enberg <penberg@kernel.org>2011-07-18 08:16:55 -0400
committerPekka Enberg <penberg@kernel.org>2011-07-18 08:16:55 -0400
commit3adf004d82c03ca9d57cbe960657757a71e4c2e7 (patch)
tree89d73135f7961ee17a3e4698b8c3f2e1f5b43476 /include/linux
parentea6bd8ee1a2ccdffc38b2b1fcfe941addfafaade (diff)
Revert "SLUB: Fix build breakage in linux/mm_types.h"
This reverts commit ea6bd8ee1a2ccdffc38b2b1fcfe941addfafaade.
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/mm_types.h25
1 files changed, 15 insertions, 10 deletions
diff --git a/include/linux/mm_types.h b/include/linux/mm_types.h
index 6dc6413f5deb..3d76a433d52f 100644
--- a/include/linux/mm_types.h
+++ b/include/linux/mm_types.h
@@ -49,27 +49,32 @@ struct page {
49 * see PAGE_MAPPING_ANON below. 49 * see PAGE_MAPPING_ANON below.
50 */ 50 */
51 /* Second double word */ 51 /* Second double word */
52 struct { 52 union {
53 union { 53 struct {
54 pgoff_t index; /* Our offset within mapping. */ 54 pgoff_t index; /* Our offset within mapping. */
55 void *freelist; /* slub first free object */
56 };
57
58 union {
59 atomic_t _mapcount; /* Count of ptes mapped in mms, 55 atomic_t _mapcount; /* Count of ptes mapped in mms,
60 * to show when page is mapped 56 * to show when page is mapped
61 * & limit reverse map searches. 57 * & limit reverse map searches.
62 */ 58 */
59 atomic_t _count; /* Usage count, see below. */
60 };
63 61
64 /* Used for cmpxchg_double in slub */ 62 struct { /* SLUB cmpxchg_double area */
65 unsigned long counters; 63 void *freelist;
66 struct { 64 union {
65 unsigned long counters;
66 struct {
67 unsigned inuse:16; 67 unsigned inuse:16;
68 unsigned objects:15; 68 unsigned objects:15;
69 unsigned frozen:1; 69 unsigned frozen:1;
70 /*
71 * Kernel may make use of this field even when slub
72 * uses the rest of the double word!
73 */
74 atomic_t _count;
75 };
70 }; 76 };
71 }; 77 };
72 atomic_t _count; /* Usage count, see below. */
73 }; 78 };
74 79
75 /* Third double word block */ 80 /* Third double word block */