projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
checkpatch: check stable email address
[firefly-linux-kernel-4.4.55.git]
/
mm
/
zsmalloc.c
diff --git
a/mm/zsmalloc.c
b/mm/zsmalloc.c
index 36b4591a7a2d3b2eca7111b26bee3efa19c7c5c5..fe78189624cfce58d29a567b6c379b80367775de 100644
(file)
--- a/
mm/zsmalloc.c
+++ b/
mm/zsmalloc.c
@@
-141,7
+141,7
@@
#define ZS_MAX_ALLOC_SIZE PAGE_SIZE
/*
#define ZS_MAX_ALLOC_SIZE PAGE_SIZE
/*
- * On systems with 4K page size, this gives 25
4
size classes! There is a
+ * On systems with 4K page size, this gives 25
5
size classes! There is a
* trader-off here:
* - Large number of size classes is potentially wasteful as free page are
* spread across these classes
* trader-off here:
* - Large number of size classes is potentially wasteful as free page are
* spread across these classes
@@
-1082,7
+1082,7
@@
void zs_unmap_object(struct zs_pool *pool, unsigned long handle)
class = &pool->size_class[class_idx];
off = obj_idx_to_offset(page, obj_idx, class->size);
class = &pool->size_class[class_idx];
off = obj_idx_to_offset(page, obj_idx, class->size);
- area =
&__get_cpu_var(
zs_map_area);
+ area =
this_cpu_ptr(&
zs_map_area);
if (off + class->size <= PAGE_SIZE)
kunmap_atomic(area->vm_addr);
else {
if (off + class->size <= PAGE_SIZE)
kunmap_atomic(area->vm_addr);
else {