]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Move the implementation of the vmspace_swap_count() (used only in
authorPoul-Henning Kamp <phk@FreeBSD.org>
Fri, 18 Jul 2003 10:47:58 +0000 (10:47 +0000)
committerPoul-Henning Kamp <phk@FreeBSD.org>
Fri, 18 Jul 2003 10:47:58 +0000 (10:47 +0000)
commitec38b344cb6aa983e57f27c52a5a75084e5ae9c2
treebcc30ab6e5251465bb34f2340ddb08d968c1e1d2
parent567104a1485ba7e76069976c365b6938aa83fe91
Move the implementation of the vmspace_swap_count() (used only in
the "toss the largest process" emergency handling) from vm_map.c to
swap_pager.c.

The quantity calculated depends strongly on the internals of the
swap_pager and by moving it, we no longer need to expose the
internal metrics of the swap_pager to the world.
sys/vm/swap_pager.c
sys/vm/swap_pager.h
sys/vm/vm_map.c