Page MenuHomeFreeBSD

swapon_check_swzone() to use already calculated static variables
ClosedPublic

Authored by ota_j.email.ne.jp on Oct 17 2019, 12:26 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, May 1, 10:18 PM
Unknown Object (File)
Wed, May 1, 10:18 PM
Unknown Object (File)
Wed, May 1, 10:18 PM
Unknown Object (File)
Wed, May 1, 5:52 PM
Unknown Object (File)
Feb 25 2024, 12:00 AM
Unknown Object (File)
Dec 20 2023, 4:19 AM
Unknown Object (File)
Nov 19 2023, 11:38 PM
Unknown Object (File)
Nov 17 2023, 1:45 PM
Subscribers

Details

Summary

These are the same numbers already available as static variables.
Also be clear that maxswap is in pages.

Test Plan

Based on code review?

Diff Detail

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

Event Timeline

ota_j.email.ne.jp retitled this revision from swapon_check_swzone() to use already calclurated static variable. to swapon_check_swzone() to use already calclurated static variables.Oct 17 2019, 12:33 AM
ota_j.email.ne.jp edited the summary of this revision. (Show Details)
ota_j.email.ne.jp retitled this revision from swapon_check_swzone() to use already calclurated static variables to swapon_check_swzone() to use already calculated static variables.Oct 17 2019, 12:37 AM
ota_j.email.ne.jp edited the summary of this revision. (Show Details)

I am going to commit the patch except the description of the sysctl, after build test.

sys/vm/swap_pager.c
174 ↗(On Diff #63390)

I find it strange to see 'amount of swap pages', for me it is either 'amount of swap' or 'number of swap pages'.

But I am not native speaker, and my english is bad.

This revision is now accepted and ready to land.Oct 17 2019, 1:39 PM