diff options
author | alc <alc@FreeBSD.org> | 2012-05-18 05:36:04 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2012-05-18 05:36:04 +0000 |
commit | eba132f415a1222ad568372f289b15e1d838fb05 (patch) | |
tree | 3ef3ba31bad2506ab41ce284c292b71ee0b9d718 /sys/geom/mirror/g_mirror.c | |
parent | 6fce315734ae68ff89003ff88fc8c19be17e97a8 (diff) | |
download | FreeBSD-src-eba132f415a1222ad568372f289b15e1d838fb05.zip FreeBSD-src-eba132f415a1222ad568372f289b15e1d838fb05.tar.gz |
Rename pmap_collect() to pmap_pv_reclaim() and rewrite it such that it no
longer uses the active and inactive paging queues. Instead, the pmap now
maintains an LRU-ordered list of pv entry pages, and pmap_pv_reclaim() uses
this list to select pv entries for reclamation.
Note: The old pmap_collect() tried to avoid reclaiming mappings for pages
that have either a hold_count or a busy field that is non-zero. However,
this isn't necessary for correctness, and the locking in pmap_collect() was
insufficient to guarantee that such mappings weren't reclaimed. The new
pmap_pv_reclaim() doesn't even try.
Reviewed by: kib
MFC after: 6 weeks
Diffstat (limited to 'sys/geom/mirror/g_mirror.c')
0 files changed, 0 insertions, 0 deletions