summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2017-09-06 07:04:29 +0000
committerLuiz Souza <luiz@netgate.com>2018-02-21 15:17:02 -0300
commit92cc32ed7273a72e2f03bab61921597cb35bffd1 (patch)
tree33454bff5778eeb15955e83fa404d960c9043296
parent522b83a1d712abdd903c5dbc701b04415c1342e7 (diff)
downloadFreeBSD-src-92cc32ed7273a72e2f03bab61921597cb35bffd1.zip
FreeBSD-src-92cc32ed7273a72e2f03bab61921597cb35bffd1.tar.gz
MFC r323017:
Make the swap_pager_full variable static. PR: 221356 (cherry picked from commit ba21942ce28b39691547ca8cd966f6304b5ce025)
-rw-r--r--sys/vm/swap_pager.c2
-rw-r--r--sys/vm/swap_pager.h1
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;
OpenPOWER on IntegriCloud