From ba21942ce28b39691547ca8cd966f6304b5ce025 Mon Sep 17 00:00:00 2001 From: kib Date: Wed, 6 Sep 2017 07:04:29 +0000 Subject: MFC r323017: Make the swap_pager_full variable static. PR: 221356 --- sys/vm/swap_pager.c | 2 +- sys/vm/swap_pager.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'sys/vm') diff --git a/sys/vm/swap_pager.c b/sys/vm/swap_pager.c index f5a766b..7378b6d 100644 --- a/sys/vm/swap_pager.c +++ b/sys/vm/swap_pager.c @@ -314,7 +314,7 @@ swap_release_by_cred(vm_ooffset_t decr, struct ucred *cred) #define SWM_FREE 0x02 /* free, period */ #define SWM_POP 0x04 /* pop out */ -int swap_pager_full = 2; /* swap space exhaustion (task killing) */ +static int swap_pager_full = 2; /* swap space exhaustion (task killing) */ static int swap_pager_almost_full = 1; /* swap space exhaustion (w/hysteresis)*/ static int nsw_rcount; /* free read buffers */ static int nsw_wcount_sync; /* limit write buffers / synchronous */ diff --git a/sys/vm/swap_pager.h b/sys/vm/swap_pager.h index 0131297..1abded5 100644 --- a/sys/vm/swap_pager.h +++ b/sys/vm/swap_pager.h @@ -73,7 +73,6 @@ struct swdevt { #ifdef _KERNEL -extern int swap_pager_full; extern int swap_pager_avail; struct xswdev; -- cgit v1.1