Skip to content

Commit 855e57a

Browse files
Christoph Hellwigtorvalds
authored andcommitted
mm: remove unmap_vmap_area
This function just has a single caller, open code it there. Signed-off-by: Christoph Hellwig <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Acked-by: Peter Zijlstra (Intel) <[email protected]> Cc: Christian Borntraeger <[email protected]> Cc: Christophe Leroy <[email protected]> Cc: Daniel Vetter <[email protected]> Cc: David Airlie <[email protected]> Cc: Gao Xiang <[email protected]> Cc: Greg Kroah-Hartman <[email protected]> Cc: Haiyang Zhang <[email protected]> Cc: Johannes Weiner <[email protected]> Cc: "K. Y. Srinivasan" <[email protected]> Cc: Laura Abbott <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Michael Kelley <[email protected]> Cc: Minchan Kim <[email protected]> Cc: Nitin Gupta <[email protected]> Cc: Robin Murphy <[email protected]> Cc: Sakari Ailus <[email protected]> Cc: Stephen Hemminger <[email protected]> Cc: Sumit Semwal <[email protected]> Cc: Wei Liu <[email protected]> Cc: Benjamin Herrenschmidt <[email protected]> Cc: Catalin Marinas <[email protected]> Cc: Heiko Carstens <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Vasily Gorbik <[email protected]> Cc: Will Deacon <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Linus Torvalds <[email protected]>
1 parent ed1f324 commit 855e57a

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

mm/vmalloc.c

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1248,14 +1248,6 @@ int unregister_vmap_purge_notifier(struct notifier_block *nb)
12481248
}
12491249
EXPORT_SYMBOL_GPL(unregister_vmap_purge_notifier);
12501250

1251-
/*
1252-
* Clear the pagetable entries of a given vmap_area
1253-
*/
1254-
static void unmap_vmap_area(struct vmap_area *va)
1255-
{
1256-
unmap_kernel_range_noflush(va->va_start, va->va_end - va->va_start);
1257-
}
1258-
12591251
/*
12601252
* lazy_max_pages is the maximum amount of virtual address space we gather up
12611253
* before attempting to purge with a TLB flush.
@@ -1417,7 +1409,7 @@ static void free_vmap_area_noflush(struct vmap_area *va)
14171409
static void free_unmap_vmap_area(struct vmap_area *va)
14181410
{
14191411
flush_cache_vunmap(va->va_start, va->va_end);
1420-
unmap_vmap_area(va);
1412+
unmap_kernel_range_noflush(va->va_start, va->va_end - va->va_start);
14211413
if (debug_pagealloc_enabled_static())
14221414
flush_tlb_kernel_range(va->va_start, va->va_end);
14231415

0 commit comments

Comments
 (0)