diff options
author | kib <kib@FreeBSD.org> | 2017-09-06 07:04:29 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2017-09-06 07:04:29 +0000 |
commit | ba21942ce28b39691547ca8cd966f6304b5ce025 (patch) | |
tree | baa0c5ffe2f732acd75c0f2bba08fb710992411d | |
parent | eb56433fce72f7bfb65f81a67ea87d0953cfcf47 (diff) | |
download | FreeBSD-src-ba21942ce28b39691547ca8cd966f6304b5ce025.zip FreeBSD-src-ba21942ce28b39691547ca8cd966f6304b5ce025.tar.gz |
MFC r323017:
Make the swap_pager_full variable static.
PR: 221356
-rw-r--r-- | sys/vm/swap_pager.c | 2 | ||||
-rw-r--r-- | sys/vm/swap_pager.h | 1 |
2 files changed, 1 insertions, 2 deletions
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; |