Date: Wed, 30 Aug 2017 09:44:05 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r323017 - head/sys/vm Message-ID: <201708300944.v7U9i5DO047542@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kib Date: Wed Aug 30 09:44:05 2017 New Revision: 323017 URL: https://svnweb.freebsd.org/changeset/base/323017 Log: Make the swap_pager_full variable static. r290920 removed the use of the variable from vm/vm_pageout.c. Submitted by: ota@j.email.ne.jp PR: 221356 MFC after: 1 week Modified: head/sys/vm/swap_pager.c head/sys/vm/swap_pager.h Modified: head/sys/vm/swap_pager.c ============================================================================== --- head/sys/vm/swap_pager.c Wed Aug 30 07:58:33 2017 (r323016) +++ head/sys/vm/swap_pager.c Wed Aug 30 09:44:05 2017 (r323017) @@ -311,7 +311,7 @@ swap_release_by_cred(vm_ooffset_t decr, struct ucred * #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 */ Modified: head/sys/vm/swap_pager.h ============================================================================== --- head/sys/vm/swap_pager.h Wed Aug 30 07:58:33 2017 (r323016) +++ head/sys/vm/swap_pager.h Wed Aug 30 09:44:05 2017 (r323017) @@ -73,7 +73,6 @@ struct swdevt { #ifdef _KERNEL -extern int swap_pager_full; extern int swap_pager_avail; struct xswdev;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201708300944.v7U9i5DO047542>