diff options
Diffstat (limited to 'drivers/staging/zsmalloc/zsmalloc-main.c')
-rw-r--r-- | drivers/staging/zsmalloc/zsmalloc-main.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/staging/zsmalloc/zsmalloc-main.c b/drivers/staging/zsmalloc/zsmalloc-main.c index 455fc2f9724..240bcbff263 100644 --- a/drivers/staging/zsmalloc/zsmalloc-main.c +++ b/drivers/staging/zsmalloc/zsmalloc-main.c | |||
@@ -40,18 +40,6 @@ | |||
40 | #define CLASS_IDX_MASK ((1 << CLASS_IDX_BITS) - 1) | 40 | #define CLASS_IDX_MASK ((1 << CLASS_IDX_BITS) - 1) |
41 | #define FULLNESS_MASK ((1 << FULLNESS_BITS) - 1) | 41 | #define FULLNESS_MASK ((1 << FULLNESS_BITS) - 1) |
42 | 42 | ||
43 | /* | ||
44 | * Object location (<PFN>, <obj_idx>) is encoded as | ||
45 | * as single (void *) handle value. | ||
46 | * | ||
47 | * Note that object index <obj_idx> is relative to system | ||
48 | * page <PFN> it is stored in, so for each sub-page belonging | ||
49 | * to a zspage, obj_idx starts with 0. | ||
50 | */ | ||
51 | #define _PFN_BITS (MAX_PHYSMEM_BITS - PAGE_SHIFT) | ||
52 | #define OBJ_INDEX_BITS (BITS_PER_LONG - _PFN_BITS) | ||
53 | #define OBJ_INDEX_MASK ((_AC(1, UL) << OBJ_INDEX_BITS) - 1) | ||
54 | |||
55 | /* per-cpu VM mapping areas for zspage accesses that cross page boundaries */ | 43 | /* per-cpu VM mapping areas for zspage accesses that cross page boundaries */ |
56 | static DEFINE_PER_CPU(struct mapping_area, zs_map_area); | 44 | static DEFINE_PER_CPU(struct mapping_area, zs_map_area); |
57 | 45 | ||