From nobody Fri May 20 20:58:56 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 C62EA1B3C3C8; Fri, 20 May 2022 20:58:56 +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 4L4fGS4z9Nz3mgT; Fri, 20 May 2022 20:58:56 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1653080336; 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=nKebxxWX411suo6WLFu4VfS/vhKx5ZdO61P8MFnOoe4=; b=ZUQAVL8NBSYXeGKrjXE4Cft8yHySnyE7ctr8gbTc8pnRtreB3mmswETX/h6lYEX/QFi2LI 3mLFDqSjdivOudpcqhgtt2LAxd3SKWoHqv9E6OciR4gZ/zo3BfIOo2I2fB5ul430dV/dTe lB/iUk1kt20k3FnZ4ysl1eAHh9Px2zNa95b0BBBkY6MPeifIxzkH7114Snk76BH0JTPrht 1IDWXgx2WKxogYNYlJ/Edw0kcyYCUNnfNmLRH121JLj6NT+u7ywKg4gZ29H30tgWOc+9AW AU6Vr4EnLSgyU3D1s6VMzE3iECxAr6wGdITBqFCjzVh08OUSHWkEHMUh1RZWIg== 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 8672A197B4; Fri, 20 May 2022 20:58:56 +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 24KKwuv9042029; Fri, 20 May 2022 20:58:56 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 24KKwuWZ042028; Fri, 20 May 2022 20:58:56 GMT (envelope-from git) Date: Fri, 20 May 2022 20:58:56 GMT Message-Id: <202205202058.24KKwuWZ042028@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mateusz Guzik Subject: git: cdb337b0970f - main - vfs: fix copy-pasto in previous 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: mjg X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: cdb337b0970f9becdc1a4f026b73d93e50ff9e8b Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1653080336; 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=nKebxxWX411suo6WLFu4VfS/vhKx5ZdO61P8MFnOoe4=; b=Qp/8+p6ohilnUNzkwpZpQ1WJS7aHae+jVKgWiflf3u0eSVR7FqaC+MnXl5+kcReGdpvASo QOE/J0onPlSQFlFL4GilqsQXYv4H/5galbj0Gsbxj0e8/ckjfKZ7Ye/jOxw239rZdqWGrH iNpa8ZcLyqr8jaPcYBLeNjQotHnLLnVJE86qhCPufXPMypFdcly375+/H/K3fzCNTSX3tK JOte0szFJ63Ktra/ZKvtL7HoJ1RZgPgjYvtTZlLnOeHbdNLk3joyqNUE6tyjEYBvYK85kB JfnrWQAB0AE3MfYzBbOVPsRAi+3cOwgHsCqg8s0AVGPWmF7xdjo5eH/CJZAb8g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1653080336; a=rsa-sha256; cv=none; b=tEudKD3OPcRSzwRGmj0sNM5qZivwfJYpA721C8nLtUh/Rx98fHDF0B4wPwoK7E/mll2jZf OLEqRVSZNtEA+1SXPTiRQB6RaofJTEkdkDH0A1qju9h2qzPup6J1dmKPZKovOKW25bpPH8 sdFgsSJyMX02ZpzWdI89s9AxZl4UrlOr40fkV6Y03rrt2TTtRNWHh6HW7KyHxWdhYAJVnN TszBTR/Gob9qFNuZbmlfI9PQ06RRsVzoqoKgzb1gH+edoLgfHa0YRdxiwlqoN+RK7Z3c0U RyjlBMspKQAp/UlMf/8DNWL6s4Fyw6QZrS42OR5Hbx3Qfu5sCZniIuYur6ihtQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=cdb337b0970f9becdc1a4f026b73d93e50ff9e8b commit cdb337b0970f9becdc1a4f026b73d93e50ff9e8b Author: Mateusz Guzik AuthorDate: 2022-05-20 20:58:11 +0000 Commit: Mateusz Guzik CommitDate: 2022-05-20 20:58:11 +0000 vfs: fix copy-pasto in previous Reported by: dchagin --- sys/kern/vfs_syscalls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c index 600299fbe6eb..b27c18dd1d96 100644 --- a/sys/kern/vfs_syscalls.c +++ b/sys/kern/vfs_syscalls.c @@ -3492,7 +3492,7 @@ retry: if (error != 0) goto out; - error = vn_truncate_locked(vp, 0, false, td->td_ucred); + error = vn_truncate_locked(vp, length, false, td->td_ucred); out: VOP_UNLOCK(vp); vn_finished_write(mp);