From nobody Mon Aug 05 15:07:41 2024 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Wd0DF5cWqz5SBHr; Mon, 05 Aug 2024 15:07:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Wd0DF55tcz4T9F; Mon, 5 Aug 2024 15:07:41 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1722870461; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=0R8oUJ7fJ2KrazO/jDvU/i7YqSVv3vQJ/K6rRHP6V2U=; b=gEZYwYzg02XDQ7c/g+ghlM8ZComGg/bMXKnY/hYUQqY9CE06hJT/WNlnZD3VyXqh4mFxSe jMY5pxMIW9ke9fqi5ZyPiiTmVppAKGNY5PuIwQ28/Bs+kTJm//uzTfFOqE4N3FOkQLb+qB ddG9Ju35rMs5eWNan1aX8vKzZUfQTTLGd8MNLXHcVqd56EdJxqt1OiEYuwSrLAZajEWpuk xQgA099A0lYGfell2EWg+iMaDRKJrITjII/7Utk357JSseQaOamOtcWHgWRLxyp0pxZ2BM g66ocRXMNhEAsWGSLnuEC7OYaS9WLzi/bohAbCZ0wCPxJrqYI8yUEOz8CREeBQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1722870461; a=rsa-sha256; cv=none; b=ed2Unb/HVvbHlJRRZ7zpNFG/2b313laAnXlTuys3HrSK8tD379eEsU/rDndpS1kZo3Kxj7 9HWS94lxZGO8NZZYTu/pIwiHsGnGw5O1pki41OSpYNASihox3z9LHZ+wp1iE/GWzkYJ9iw yciANzfPbg0ALelMihsLcWi2TJdgeXrJ/8kMOdKuOWuk9nuIYHErllPGr/81mIUK30OrEv eoK7tW9X1ZGEcEE2gdoINRoTo6rMTTw2PhQuUH0A4+44Kt1XumLEtecIx54N8w9j/GfvVe T9HKwXYwlJeq1ggkXCzs3gzrtgtEFP3q6LxoOzbzr+nRh7fEDeXRVtbnKoS10g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1722870461; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=0R8oUJ7fJ2KrazO/jDvU/i7YqSVv3vQJ/K6rRHP6V2U=; b=DwG7TU6QGfDpLDdFWQiEkfAD/gW1CuQOTnULJeVXTbxH3ZRvUjMTvzoC81obSow8/CvqK9 cFeIHiQ3meMyxKXYtT2wA1N59eUgBXqaSc2WlpuJ/tfjuk4niNw8EhDMfmDVrCYYit+a8Y ZnGVfo9tXrRpNbCdv70SD0+8tP5i8XCBZrBA3LtOkZakSvzeYc2DEAK9smuJvNxY0OKABu 13l9ElhLUcnGHpOmO6vbh/00ZLC1dGfL6WSVxiL0VcapGJWBnZYo2AjZbeE51E7c8uk9Hi 72pETV/lVbl1cwFZw1CDCOzcHFTzxghbssT11uPbHDlmiUYLOpNjsHTh9jbcLA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Wd0DF4hKzzSW3; Mon, 5 Aug 2024 15:07:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 475F7fM9081459; Mon, 5 Aug 2024 15:07:41 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 475F7fPu081456; Mon, 5 Aug 2024 15:07:41 GMT (envelope-from git) Date: Mon, 5 Aug 2024 15:07:41 GMT Message-Id: <202408051507.475F7fPu081456@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 8bb6b413f6d3 - main - vm/vm_pageout.c: eliminate write-only variable List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8bb6b413f6d32a7db111246b5d2aa8a2b9e50734 Auto-Submitted: auto-generated The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=8bb6b413f6d32a7db111246b5d2aa8a2b9e50734 commit 8bb6b413f6d32a7db111246b5d2aa8a2b9e50734 Author: Konstantin Belousov AuthorDate: 2024-08-05 15:05:15 +0000 Commit: Konstantin Belousov CommitDate: 2024-08-05 15:07:18 +0000 vm/vm_pageout.c: eliminate write-only variable PR: 280631 Fixes: acb4cb33d35838e3e86412202cd63d9021b21ce2 (non-debug builds) Sponsored by: The FreeBSD Foundation --- sys/vm/vm_pageout.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sys/vm/vm_pageout.c b/sys/vm/vm_pageout.c index 0d054da34866..f6c5e6291692 100644 --- a/sys/vm/vm_pageout.c +++ b/sys/vm/vm_pageout.c @@ -366,12 +366,10 @@ vm_pageout_flushable(vm_page_t m) static int vm_pageout_cluster(vm_page_t m) { - vm_object_t object; vm_page_t mc[2 * vm_pageout_page_count - 1]; int alignment, num_ends, page_base, pageout_count; - object = m->object; - VM_OBJECT_ASSERT_WLOCKED(object); + VM_OBJECT_ASSERT_WLOCKED(m->object); vm_page_assert_xbusied(m);