From nobody Wed Apr 13 23:09:13 2022 X-Original-To: dev-commits-src-all@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 B81C51B40135; Wed, 13 Apr 2022 23:09:16 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Kdyvt5CxXz4lmk; Wed, 13 Apr 2022 23:09:14 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649891355; 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=hEiAlwzMTmkvrICYAy0og/6m5gCM16ATvGITHhglDrY=; b=QtHQ0ViPvAlcIYJF/RcKRw4bhJqtmGYABshErDXabQjDPWUcytJyqqBVAbeedBwAvDOuPv l5qCFyz0g3dbr0a/AKBIeVnR8YEL33fnIa1lyU0vPbZKf0d8wrZqwX7LkSVexeAdYLTcli 38Cedwb0+hJc2fG/DDwSQni4C67TDwbaKLrDYVgYJM1HwgWqjRWAbqu14TCkLaDDIAb4hf sZqU4Il6mP8ALGtBWO9wAcyei2I0pdTwOo9kQDGw5a99pDCFO5XgTKB/RAAirzh0z9Lmld FJloOr1V8d8YmO1DzI+5BdUSg3jXH3dGE87f5D5FP3kLwmNE2MuSRtQSNtktcw== 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 168E414EEF; Wed, 13 Apr 2022 23:09:14 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 23DN9D2C074109; Wed, 13 Apr 2022 23:09:13 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23DN9Dco074108; Wed, 13 Apr 2022 23:09:13 GMT (envelope-from git) Date: Wed, 13 Apr 2022 23:09:13 GMT Message-Id: <202204132309.23DN9Dco074108@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: 40cbcb996c08 - main - vm_fault_dontneed: Inline value of variable used once in an assertion. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 40cbcb996c0827dc5af93744a86c22198cac5f41 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649891355; 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=hEiAlwzMTmkvrICYAy0og/6m5gCM16ATvGITHhglDrY=; b=RfoTafSK5G+8HzACcENj/NpPOxZOYEHije5BrQKxz3rAUCvd2i6hbhp+1tqKxnNMqvg27T 35tSNDD/mvIAV01bsmPF0eJ/ZtmW7DW/pqsP+H3zLN+y8fBk8NfVC2ALUGW/Tl28jXHvKB /zaPeIl/izkKEOuXaX4TR3cVJYcFXi+ySK35+56oV6Zm7Q/JF/PQ7am/lkT29bYVNYgXzi Em8tOBBeirn0R5kLHS+zQxjLSwi7mAmIH8441ALV+vECjOLWZWJnGDlUwZ0NVSD+foiD1O rxjKaLuTRL+9lsp8aVGhb5LvTzSnrDvWup1NdUKYqzj+tk/TIFtf5Ru20fEYtw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649891355; a=rsa-sha256; cv=none; b=Gp/cdRndn28WkKj+2tv+5sicGhXMqO4Ro1N0VUdFjmKGsyyI5mEQjnqMfna+GBfaKS4rJh MffkgHCW4a4oxpfM/RGxs7f1dO/xUtyVLH71rGMlL7yOgJLA84H6gOacp9fovz/NC6TyPZ FSXsJFAz0frSxDZk3Z2o8tQOg1gHe0lRj6QEOcrg+uGGgWgNvWmUVxSpHLXAq8PMNode+Q QvmJiI8p73IKYVc8WgZItn1qd5yp5haoLkq/NPo+cgLW7/CYNExhL/QxVLwU3FVZ4bRiKm uVkxbTDvKONztuW3zV/tECZ2QwgqTs7xWsI3aGazd0L+IWBpFF0cb5h/vKfCfg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=40cbcb996c0827dc5af93744a86c22198cac5f41 commit 40cbcb996c0827dc5af93744a86c22198cac5f41 Author: John Baldwin AuthorDate: 2022-04-13 23:08:19 +0000 Commit: John Baldwin CommitDate: 2022-04-13 23:08:19 +0000 vm_fault_dontneed: Inline value of variable used once in an assertion. --- sys/vm/vm_fault.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sys/vm/vm_fault.c b/sys/vm/vm_fault.c index 647d9283be3b..cfdd39de3ac2 100644 --- a/sys/vm/vm_fault.c +++ b/sys/vm/vm_fault.c @@ -1730,14 +1730,13 @@ static void vm_fault_dontneed(const struct faultstate *fs, vm_offset_t vaddr, int ahead) { vm_map_entry_t entry; - vm_object_t first_object, object; + vm_object_t first_object; vm_offset_t end, start; vm_page_t m, m_next; vm_pindex_t pend, pstart; vm_size_t size; - object = fs->object; - VM_OBJECT_ASSERT_UNLOCKED(object); + VM_OBJECT_ASSERT_UNLOCKED(fs->object); first_object = fs->first_object; /* Neither fictitious nor unmanaged pages can be reclaimed. */ if ((first_object->flags & (OBJ_FICTITIOUS | OBJ_UNMANAGED)) == 0) {