*
* Nodes in the tree point to their parent unless bit 0 is set.
*/
-#define NODE256
#if defined(CONFIG_64BIT) || defined(BUILD_VDSO32_64)
-#if defined(NODE256)
#define MAPLE_NODE_SLOTS 31 /* 256 bytes including ->parent */
#define MAPLE_RANGE64_SLOTS 16 /* 256 bytes */
#define MAPLE_ARANGE64_SLOTS 10 /* 240 bytes */
#define MAPLE_NODE_MASK 255UL
-#else
-#define MAPLE_NODE_SLOTS 15 /* 128 bytes including ->parent */
-#define MAPLE_RANGE64_SLOTS 8 /* 128 bytes */
-#define MAPLE_ARANGE64_SLOTS 5 /* 120 bytes */
-#define MAPLE_NODE_MASK 127UL
-#endif // End NODE256
-
#else
/* Need to do corresponding calculations for 32-bit kernels */
#endif
[maple_dense] = MAPLE_NODE_SLOTS / 2,
[maple_leaf_64] = (MAPLE_RANGE64_SLOTS / 2) - 2,
[maple_range_64] = (MAPLE_RANGE64_SLOTS / 2) - 2,
-#if defined(NODE256)
[maple_arange_64] = (MAPLE_ARANGE64_SLOTS / 2) - 1,
-#else
- [maple_arange_64] = (MAPLE_ARANGE64_SLOTS / 2),
-#endif
};
#define mt_min_slot_count(x) mt_min_slots[mte_node_type(x)]
struct maple_enode *mn1, *mn2;
void *entry;
-#if defined(NODE256)
unsigned long seq100[] = {
/* 0-5 */
78, 79, 80,
256, 260, 266, 270, 275, 280, 290, 398,
286, 310,
};
-#else
- // Seq test 100 data
- unsigned long seq100[] = {
- 82, 83, 84,
- 50, 100, 2,
-
- 38, 39, 40, 37,
- 20, 50, 3,
-
- 79, 80, 81,
- 76, 2, 78, 85, 4,
- };
- // seq test 2000 data
- unsigned long seq2000[] = {
- 1792, 1791,
- 1700, 1800, 2,
- };
-
- // seq test 400 data
- unsigned long seq400[] = {
- 376, 391,
- 352, 356, 360, 364, 378, 384, 388, 398,
- 374, 375,
- };
-#endif
unsigned long index = seq100[0];