zsmalloc-switch-from-alloc_vm_area-to-get_vm_area.patch removed from -mm tree
The patch titled
Subject: zsmalloc: switch from alloc_vm_area to get_vm_area
has been removed from the -mm tree. Its filename was
zsmalloc-switch-from-alloc_vm_area-to-get_vm_area.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Christoph Hellwig <[email protected]>
Subject: zsmalloc: switch from alloc_vm_area to get_vm_area
Just manually pre-fault the PTEs using apply_to_page_range.
Signed-off-by Christoph Hellwig <[email protected]>
Co-developed-by Minchan Kim <[email protected]>
Cc Boris Ostrovsky <[email protected]>
Cc Chris Wilson <[email protected]>
Cc Jani Nikula <[email protected]>
Cc Joonas Lahtinen <[email protected]>
Cc Juergen Gross <[email protected]>
Cc Matthew Auld <[email protected]>
Cc "Matthew Wilcox (Oracle)" <[email protected]>
Cc Nitin Gupta <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Rodrigo Vivi <[email protected]>
Cc Stefano Stabellini <[email protected]>
Cc Tvrtko Ursulin <[email protected]>
Cc Uladzislau Rezki (Sony) <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
mm/zsmalloc.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-)
mm/zsmalloc.c renamed from mm/zsmalloc.c~zsmalloc-switch-from-alloc_vm_area-to-get_vm_area +8 -2
@@ -1122,10 +1122,16 @@ static inline int __zs_cpu_up(struct map*/ if (area->vm)return 0 ; - area->vm =alloc_vm_area (PAGE_SIZE *2 ,NULL ); + area->vm =get_vm_area (PAGE_SIZE *2 ,0 );if (!area->vm)return -ENOMEM ; -return 0 ; + +/* +* Populate ptes in advance to avoid pte allocation with GFP_KERNEL +* in non-preemtible context of zs_map_object. +*/ +return apply_to_page_range (&init_mm, (unsigned long )area->vm->addr, +PAGE_SIZE *2 ,NULL ,NULL ); }static inline void __zs_cpu_down (struct mapping_area *area)
_
Patches currently in -mm which might be from [email protected] are