Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mm/memory.c: remove ZAP_BLOCK_SIZE

ZAP_BLOCK_SIZE became unused in the preemptible-mmu_gather work ("mm:
Remove i_mmap_lock lockbreak"). So zap it.

Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Andrew Morton and committed by
Linus Torvalds
6ac47520 32f84528

-11
-11
mm/memory.c
··· 1290 1290 return addr; 1291 1291 } 1292 1292 1293 - #ifdef CONFIG_PREEMPT 1294 - # define ZAP_BLOCK_SIZE (8 * PAGE_SIZE) 1295 - #else 1296 - /* No preempt: go for improved straight-line efficiency */ 1297 - # define ZAP_BLOCK_SIZE (1024 * PAGE_SIZE) 1298 - #endif 1299 - 1300 1293 /** 1301 1294 * unmap_vmas - unmap a range of memory covered by a list of vma's 1302 1295 * @tlb: address of the caller's struct mmu_gather ··· 1302 1309 * Returns the end address of the unmapping (restart addr if interrupted). 1303 1310 * 1304 1311 * Unmap all pages in the vma list. 1305 - * 1306 - * We aim to not hold locks for too long (for scheduling latency reasons). 1307 - * So zap pages in ZAP_BLOCK_SIZE bytecounts. This means we need to 1308 - * return the ending mmu_gather to the caller. 1309 1312 * 1310 1313 * Only addresses between `start' and `end' will be unmapped. 1311 1314 *