From owner-svn-src-user@freebsd.org Fri Aug 19 05:30:03 2016 Return-Path: Delivered-To: svn-src-user@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C6E4EBBE60D for ; Fri, 19 Aug 2016 05:30:03 +0000 (UTC) (envelope-from alc@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8CC8C150A; Fri, 19 Aug 2016 05:30:03 +0000 (UTC) (envelope-from alc@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u7J5U24N048341; Fri, 19 Aug 2016 05:30:02 GMT (envelope-from alc@FreeBSD.org) Received: (from alc@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u7J5U28G048340; Fri, 19 Aug 2016 05:30:02 GMT (envelope-from alc@FreeBSD.org) Message-Id: <201608190530.u7J5U28G048340@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: alc set sender to alc@FreeBSD.org using -f From: Alan Cox Date: Fri, 19 Aug 2016 05:30:02 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r304445 - user/alc/PQ_LAUNDRY/sys/vm X-SVN-Group: user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Aug 2016 05:30:03 -0000 Author: alc Date: Fri Aug 19 05:30:02 2016 New Revision: 304445 URL: https://svnweb.freebsd.org/changeset/base/304445 Log: Rename a variable. Modified: user/alc/PQ_LAUNDRY/sys/vm/vm_pageout.c Modified: user/alc/PQ_LAUNDRY/sys/vm/vm_pageout.c ============================================================================== --- user/alc/PQ_LAUNDRY/sys/vm/vm_pageout.c Fri Aug 19 05:20:12 2016 (r304444) +++ user/alc/PQ_LAUNDRY/sys/vm/vm_pageout.c Fri Aug 19 05:30:02 2016 (r304445) @@ -1095,7 +1095,7 @@ static void vm_pageout_laundry_worker(void *arg) { struct vm_domain *domain; - uint64_t ninact, nlaundry; + uint64_t nclean, nlaundry; u_int wakeups, gen; int cycle, domidx, launder, prev_shortfall, shortfall, target; @@ -1168,10 +1168,10 @@ vm_pageout_laundry_worker(void *arg) * Instead, it is a slowly growing function of the number of * page daemon wakeups since the last laundering. */ - ninact = vm_cnt.v_inactive_count + vm_cnt.v_free_count; + nclean = vm_cnt.v_inactive_count + vm_cnt.v_free_count; nlaundry = vm_cnt.v_laundry_count; if (target == 0 && wakeups != gen && - nlaundry * isqrt(wakeups - gen) >= ninact) { + nlaundry * isqrt(wakeups - gen) >= nclean) { gen = wakeups; /* @@ -1193,9 +1193,9 @@ vm_pageout_laundry_worker(void *arg) target = vm_cnt.v_free_target - vm_pageout_wakeup_thresh; /* Avoid division by zero. */ - if (ninact == 0) - ninact = 1; - target = nlaundry * (u_int)target / ninact / 10; + if (nclean == 0) + nclean = 1; + target = nlaundry * (u_int)target / nclean / 10; if (target == 0) target = 1;