From nobody Thu Jan 18 01:02:39 2024 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 4TFkxX0RhLz57DCD; Thu, 18 Jan 2024 01:02:40 +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 4TFkxW6l9Zz4XYc; Thu, 18 Jan 2024 01:02:39 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705539759; 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=hIHSYG1cnmwqclpkBiwHxlK3FcyKpjyHegtYFBDtVp4=; b=tKN5w8Rmc1ZcssRnXVbNPbDJyxsr2vnEfjJW3bPyfKEo06JZPHMekunpeVv7GfemD8LeZl qbbiVQUxp/vQ7yEB0VFdllHpjNrsS0FbGxcRmuDd261o3VHGWVKNhA49mVTl7nK1sqX2DM OR/rBEfV8p4gOMDKY6jZ7daaOi8ZUxKDmxPefassXYrswajQZDKM/6tK/ew3ktgXQ/Hssn H+kEQI1z17WFzDPEAnMNo8nXC9Fe+opRIZGx0h1TUQ7FkO3WYNG121/yjyKwDuorrfbhal V8shpqmbbMu8LDJWYqa4OGIuX+ivEZrbyUbn2NmPkMeJ6Ng3nZIhl2RGbU7sPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705539759; 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=hIHSYG1cnmwqclpkBiwHxlK3FcyKpjyHegtYFBDtVp4=; b=jnpMbqaWtDJVcL+iNoFL0/t5T+Ix6k/EguXKYCf/iRn2Y1Xb3NDqhh8Zy/X6/6Bt0ATOvV 9RHHIJX2fmLAAy59qve80ljIhCDdVBBdBbjX02ua2WuJXHJSsYGcY/FPMhC2vw7+h9m0VG YDCBBgqavi83cyT4ml4CHRkTmwNzdFagmP3PUyW9xRDHRgREhZwbVJb59JMJ5uh4iWFKU1 Li1PNlKIu+T/Vcux1HgMKPyY5mGA+qo69RMs77gb54G2wWA4rqdIokFBrLV5KiLpqw/5QA w+0uErb/luVlTjb8kvA20X6cDzghPCppE6Ot7MDWhrykr2bUM2NO328EcDjrJQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1705539759; a=rsa-sha256; cv=none; b=hspUL70QGjfAauE57C+4FcVpWTSMCkTSxk0m+1mLnZqa28cmeuhRpqWrnCeJ6C1sOTY8A9 6A0JTcuy37HchqhmA+/k0uehVODYMz0OVA9rkqOzXWE0XJ8TFRUOjYilqL0To2Q+bKUbHa 1rTiu/ABQYWH0CV6H5YpM0ZHxJQ2Vz96w4S3f1qwHfmlzYnYmqS4jLlMvKroJnuRBaDDfF jsjB+SaoCZvcI6Mww4ucKB9ERGL77/Omuky/5rMQaJhrOXR5q2SJPfL+XExp2JVaomo4J8 lBuD5BMdrOHkKTgwDaAJhE5KFYSosRLPIchAFz36GPCzMCcQGtdYhn+W0AGqng== 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 4TFkxW5pGzzmYM; Thu, 18 Jan 2024 01:02:39 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 40I12dmI036659; Thu, 18 Jan 2024 01:02:39 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 40I12dLk036656; Thu, 18 Jan 2024 01:02:39 GMT (envelope-from git) Date: Thu, 18 Jan 2024 01:02:39 GMT Message-Id: <202401180102.40I12dLk036656@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Konstantin Belousov Subject: git: 8ecd7bfd6c7c - stable/14 - vnode_pager_generic_putpages(): correctly handle clean block at EOF 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: kib X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 8ecd7bfd6c7cd1b66ef62b8e8fc8ca99c4f26669 Auto-Submitted: auto-generated The branch stable/14 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=8ecd7bfd6c7cd1b66ef62b8e8fc8ca99c4f26669 commit 8ecd7bfd6c7cd1b66ef62b8e8fc8ca99c4f26669 Author: Konstantin Belousov AuthorDate: 2024-01-08 13:21:06 +0000 Commit: Konstantin Belousov CommitDate: 2024-01-18 00:51:32 +0000 vnode_pager_generic_putpages(): correctly handle clean block at EOF PR: 276191 (cherry picked from commit bdb46c21a3e68d4395d6e0b6a205187e655532b0) --- sys/vm/vnode_pager.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/vm/vnode_pager.c b/sys/vm/vnode_pager.c index 4f4a5c0c176e..013b371964db 100644 --- a/sys/vm/vnode_pager.c +++ b/sys/vm/vnode_pager.c @@ -1466,12 +1466,13 @@ vnode_pager_generic_putpages(struct vnode *vp, vm_page_t *ma, int bytecount, start_write: if (next_offset > poffset + maxsize) next_offset = poffset + maxsize; + if (prev_offset == next_offset) + goto write_done; /* * Getting here requires finding a dirty block in the * 'skip clean blocks' loop. */ - MPASS(prev_offset < next_offset); aiov.iov_base = NULL; auio.uio_iovcnt = 1;