SVNews r327410

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

2017-12-31 04:01:47 - r327410 by alc (Alan Cox)

Complete list of files affected by revision r327410:

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

  History   Contents   Diff   MODIFY   /head/sys/vm/swap_pager.c  

Commit message:

Previously, swap_pager_copy() freed swap blocks one at at time, via
swp_pager_meta_ctl(), with no opportunity to recognize freeing of
consecutive blocks and free fewer block ranges. To open that opportunity,
this change removes the SWM_FREE option from swp_pager_meta_ctl(), and
compels the caller to do the freeing when a valid block address is returned.
In swap_pager_copy(), these frees are aggregated, so that a sequence of them
can be done at one time.

The only other caller to swp_pager_meta_ctl() that passed SWM_FREE,
swp_pager_unswapped(), is also modified to handle its single free
explicitly.

Submitted by: Doug Moore <dougm@rice.edu>
Reviewed by: kib (an earlier version)
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D13290

 


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

Page generated in 31 ms, 1 file printed. Current time is 2018-04-20 13:21:47. All times are in UTC/GMT.