SVNews r326508

NOTE: This service is experimental and subject to change! Use at your own risk!

2017-12-04 08:08:55 - r326508 by mizhka (mizhka)

Complete list of files affected by revision r326508:

(Note: At the moment, these links point to ViewVC on They are probably slow. Do not overuse.)

  History   Contents   Diff   MODIFY   /head/sys/vm/vm_page.c  
  History   Contents   Diff   MODIFY   /head/sys/vm/vm_phys.c  

Commit message:

[mips] [vm] restore translation of freelist to flind for page allocation

Commit r326346 moved domain iterators from physical layer to vm_page one,
but it also removed translation of freelist to flind for
vm_page_alloc_freelist() call. Before it expects VM_FREELIST_ parameter,
but after it expect freelist index.

On small WiFi boxes with few megabytes of RAM, there is only one freelist
VM_FREELIST_LOWMEM (1) and there is no VM_FREELIST_DEFAULT(0) (see file
sys/mips/include/vmparam.h). It results in freelist 1 with flind 0.

At first, this commit renames flind to freelist in vm_page_alloc_freelist
to avoid misunderstanding about input parameters. Then on physical layer it
restores translation for correct handling of freelist parameter.

Reported by: landonf
Reviewed by: jeff
Differential Revision:


Powered by Python FreeBSD support by secnetix GmbH & Co. KG

Page generated in 2 ms, 2 files printed. Current time is 2018-03-24 21:38:04. All times are in UTC/GMT.