FreeBSD/src c3f4f28 (r340709)sys/compat/linuxkpi/common/include/linux swap.h, sys/vm vm_swapout.c vm_pageout.h

linuxkpi: Add some basic swap functions

These are used by kms-drm to determine various heuristics relate
memory conditions.

The number of free swap pages is just a variable, and it can be
much cheaper by either adding a new getter, or simply extern'ing
swap_total. However, this patch opts to use the more expensive,
existing interface - since this isn't an operation in a high per
path.

This allows us to remove some more gpl linuxkpi and do the follo
kms-drm:
git rm linuxkpi/gplv2/include/linux/swap.h

Reviewed by:    mmacy, Johannes Lundberg <johalun0 at gmail.com>
Approved by:    emaste (mentor)
Differential Revision:  https://reviews.freebsd.org/D18052
DeltaFile
+102-0sys/compat/linuxkpi/common/include/linux/swap.h
+7-0sys/vm/vm_swapout.c
+3-0sys/vm/vm_pageout.h
+112-03 files

UnifiedSplitRaw