Page MenuHomeFreeBSD

Call swap_pager_freespace() from vm_object_page_remove().
ClosedPublic

Authored by markj on Jun 17 2020, 6:36 PM.
Tags
None
Referenced Files
F80103145: D25329.diff
Wed, Mar 27, 10:57 PM
Unknown Object (File)
Dec 23 2023, 2:53 AM
Unknown Object (File)
Sep 2 2023, 11:42 PM
Unknown Object (File)
Sep 2 2023, 11:41 PM
Unknown Object (File)
Sep 2 2023, 11:35 PM
Unknown Object (File)
Aug 28 2023, 4:34 AM
Unknown Object (File)
Jun 28 2023, 8:47 AM
Unknown Object (File)
Jun 28 2023, 8:44 AM
Subscribers

Details

Summary

All vm_object_page_remove() callers, except the LinuxKPI, free swap
space when removing a range of pages from an object. I believe the
omission in the LinuxKPI is a bug: looking at the Linux implementation,
pages in the range are purged from the swap cache.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

markj requested review of this revision.Jun 17 2020, 6:36 PM
markj created this revision.
This revision is now accepted and ready to land.Jun 19 2020, 5:23 AM
sys/dev/md/md.c
1565 ↗(On Diff #73233)

Isn't the round_page() redundant given the above "if" statement?

sys/dev/md/md.c
1565 ↗(On Diff #73233)

I believe you are right. I created D25400 for this and the other nit you pointed out.