freebsd-skq/sys
Michael Zhilin 0db2102aaa [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:	https://reviews.freebsd.org/D13351
2017-12-04 08:08:55 +00:00
..
amd64 It's time to retire AHC_REG_PRETTY_PRINT and AHD_REG_PRETTY_PRINT from 2017-11-29 23:41:49 +00:00
arm a10_gpio: Add support for more modern pin configuration 2017-12-01 20:51:08 +00:00
arm64 Make COMPAT_FREEBSD32 part of GENERIC on arm64. 2017-12-03 19:26:14 +00:00
bsm sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
cam sys/cam: further adoption of SPDX licensing ID tags. 2017-11-27 15:12:43 +00:00
cddl Mark two things as unused (since they are only sometimes used) and 2017-12-03 04:55:33 +00:00
compat Disable vim syntax highlighting. 2017-11-28 18:23:17 +00:00
conf Introduce bwn(4) support for the bhnd(4) bus. 2017-12-02 02:21:27 +00:00
contrib Use __has_builtin() to ensure clz and clzll builtins are available 2017-12-04 01:16:26 +00:00
crypto sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
ddb SPDX: oops .. not from CMU. 2017-11-30 15:58:38 +00:00
dev Add support for RealTek 8812 over USB 2017-12-03 22:02:30 +00:00
dts dts: arm64: allwinner: Remove unused dts for pine64 2017-11-18 21:39:54 +00:00
fs SPDX: Complete license IDs for ext2fs. 2017-12-02 17:22:55 +00:00
gdb sys/gdb: further adoption of SPDX licensing ID tags. 2017-11-27 15:16:59 +00:00
geom We don't need both _STAND and _STANDALONE. There's more places that 2017-12-02 00:07:09 +00:00
gnu Introduce bwn(4) support for the bhnd(4) bus. 2017-12-02 02:21:27 +00:00
i386 SPDX: use the Beerware identifier. 2017-11-30 20:33:45 +00:00
isa sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
kern Plug a name cache lock leak. 2017-12-01 22:51:02 +00:00
kgssapi sys/kgssapi: general adoption of SPDX licensing ID tags. 2017-11-27 15:49:00 +00:00
libkern sys/kern: adoption of SPDX licensing ID tags. 2017-11-27 15:20:12 +00:00
mips SPDX: Consider code from Carnegie-Mellon University. 2017-11-30 15:48:35 +00:00
modules Introduce bwn(4) support for the bhnd(4) bus. 2017-12-02 02:21:27 +00:00
net Add if media and link status events to vxlan 2017-12-02 22:04:00 +00:00
net80211 sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
netgraph sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
netinet sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
netinet6 sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
netipsec Do better cleaning in key_destroy() for VIMAGE case. 2017-12-01 09:59:42 +00:00
netpfil SPDX: Fix some cases wrongly attributed to MIT. 2017-11-30 15:10:11 +00:00
netsmb sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
nfs sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
nfsclient sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
nfsserver sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
nlm sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
ofed sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
opencrypto We don't need both _STAND and _STANDALONE. There's more places that 2017-12-02 00:07:09 +00:00
powerpc Override memattr for mmap on the Freescale DIU driver 2017-12-02 01:42:07 +00:00
riscv SPDX: Consider code from Carnegie-Mellon University. 2017-11-30 15:48:35 +00:00
rpc sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
security sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
sparc64 SPDX: Consider code from Carnegie-Mellon University. 2017-11-30 15:48:35 +00:00
sys Allow this file to be used in libsa without warning... 2017-12-03 04:55:09 +00:00
teken sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
tests
tools sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
ufs sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
vm [mips] [vm] restore translation of freelist to flind for page allocation 2017-12-04 08:08:55 +00:00
x86 SPDX: use the Beerware identifier. 2017-11-30 20:33:45 +00:00
xdr sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
xen sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
Makefile Move sys/boot to stand. Fix all references to new location 2017-11-14 23:02:19 +00:00