From nobody Sun Jan 29 08:19:29 2023 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 4P4PNx5Zh9z3bpy7; Sun, 29 Jan 2023 08:19:29 +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 4P4PNx4r0Mz3F4h; Sun, 29 Jan 2023 08:19:29 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674980369; 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=kLMvsiDSg9XF7JKzxz/iEjT6oFYHZVDUJb7Atx8QjWc=; b=sn+qa6QUI5JHyKm/2nMJXkP3iVX9e7eSaR9e53fQ7ymkVFOsGTeLXKUnaHCgYqfdhNK0WW IYuR9hvxny4rBfvufFm43Aycm4+oLIaHrmxH2IaVuj39bO3xEd8a7gIhXXMmX1sYk0KF4U CWxLapeNBbKGesz73bqBtU2jIFZ/k820v7HUBip0sYSJMxO1iVcQEKqyQfOekKe1w53buk yvbq2pwGBorI1qZ880Cx98SHyJczAiZ/B6ZboNU3hYyjbKFgml6zCp248NGydRrHOyoQLB VAQrwkaKn5m7JGzsZSpcxTbo40CW721ItHNm52KDcuq08bVUqD4Qsa/BluhzZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674980369; 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=kLMvsiDSg9XF7JKzxz/iEjT6oFYHZVDUJb7Atx8QjWc=; b=RWSktw15RzabG6He96JUj5QXywiD3/ZJNWm/ka1nPoIcRkAhnwwQuGZoFb05qduJze1cLl RHRXBdxWnwW5Gy4PFIh0lSc0IfEgl9P3pu+XjojDQjEmXBGOGANJf8Hw5N8ku7bz9miPfQ CPNZZ0LKOuNuFlDT4KrGN4n+MUx714gFQiOksq6Da8MxITdEN23vXN5AiIuQN4K+ION7qA wIvK4OOncoK3duX9XLITtARLUP5dfqzuoB/CfbSqspxZ4jDEWh09b4jYjwK21oavRiYiqn UvHZd7AE7kuDJalIxrrrpIyV5xA/iYdQHgiNAzp4A/o6z4RjgQ+DVlWLqgsHnw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1674980369; a=rsa-sha256; cv=none; b=ZMANb1NVTHMklaS6IbIX3PhIDYNhUgreHwIjnkJhFQ698Okjprw6N00fczlUukMBwaIeLs Qr/wDv8EwqjkHnnC/xfDFws7jzwbjKHmzS0M/+s17f+GJXjYd0yUeA0v6vrWA1LSyFs3bT JwQTfAoafV1g3BSKrjpm1tc7stj31Du05I3+vzdzn9V1Nq2JRmhRHd7LYM9ljLcMYZ2rs8 OvYfx9nx3JANjMgVjw8+FCPJ3AZSTTZ9KqWxKDkvApT5UyDhyuoEt6m3f4SpQSTGV3P3hu 6e8uE2+6APGfVyun3GoPBSoHe2/obMXgYIMk2MR0Y2sjTQzWgXZIkN5B2Iu4TA== 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 4P4PNx3xFnzMNM; Sun, 29 Jan 2023 08:19:29 +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 30T8JTQQ080227; Sun, 29 Jan 2023 08:19:29 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 30T8JTJb080225; Sun, 29 Jan 2023 08:19:29 GMT (envelope-from git) Date: Sun, 29 Jan 2023 08:19:29 GMT Message-Id: <202301290819.30T8JTJb080225@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Fedor Uporov Subject: git: 344243fc9213 - main - Fix block bitmap end position computation 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: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: fsu X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 344243fc9213f78b2af5f089cb8b9e0e60706705 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by fsu: URL: https://cgit.FreeBSD.org/src/commit/?id=344243fc9213f78b2af5f089cb8b9e0e60706705 commit 344243fc9213f78b2af5f089cb8b9e0e60706705 Author: Fedor Uporov AuthorDate: 2023-01-26 10:06:25 +0000 Commit: Fedor Uporov CommitDate: 2023-01-29 08:11:02 +0000 Fix block bitmap end position computation PR: 261850 Reported by: chenguang.wang MFC after: 2 weeks --- sys/fs/ext2fs/ext2_alloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/fs/ext2fs/ext2_alloc.c b/sys/fs/ext2fs/ext2_alloc.c index 489b64a1c0c5..0467e308a7a4 100644 --- a/sys/fs/ext2fs/ext2_alloc.c +++ b/sys/fs/ext2fs/ext2_alloc.c @@ -1068,7 +1068,7 @@ ext2_alloccg(struct inode *ip, int cg, daddr_t bpref, int size) start = dtogd(fs, bpref) / NBBY; else start = 0; - end = howmany(fs->e2fs_fpg, NBBY) - start; + end = howmany(fs->e2fs_fpg, NBBY); retry: runlen = 0; runstart = 0;