|
@@ -40,18 +40,6 @@
|
|
|
#define CLASS_IDX_MASK ((1 << CLASS_IDX_BITS) - 1)
|
|
|
#define FULLNESS_MASK ((1 << FULLNESS_BITS) - 1)
|
|
|
|
|
|
-/*
|
|
|
- * Object location (<PFN>, <obj_idx>) is encoded as
|
|
|
- * as single (void *) handle value.
|
|
|
- *
|
|
|
- * Note that object index <obj_idx> is relative to system
|
|
|
- * page <PFN> it is stored in, so for each sub-page belonging
|
|
|
- * to a zspage, obj_idx starts with 0.
|
|
|
- */
|
|
|
-#define _PFN_BITS (MAX_PHYSMEM_BITS - PAGE_SHIFT)
|
|
|
-#define OBJ_INDEX_BITS (BITS_PER_LONG - _PFN_BITS)
|
|
|
-#define OBJ_INDEX_MASK ((_AC(1, UL) << OBJ_INDEX_BITS) - 1)
|
|
|
-
|
|
|
/* per-cpu VM mapping areas for zspage accesses that cross page boundaries */
|
|
|
static DEFINE_PER_CPU(struct mapping_area, zs_map_area);
|
|
|
|