git: 344243fc9213 - main - Fix block bitmap end position computation

From: Fedor Uporov <fsu_at_FreeBSD.org>
Date: Sun, 29 Jan 2023 08:19:29 UTC
The branch main has been updated by fsu:

URL: https://cgit.FreeBSD.org/src/commit/?id=344243fc9213f78b2af5f089cb8b9e0e60706705

commit 344243fc9213f78b2af5f089cb8b9e0e60706705
Author:     Fedor Uporov <fsu@FreeBSD.org>
AuthorDate: 2023-01-26 10:06:25 +0000
Commit:     Fedor Uporov <fsu@FreeBSD.org>
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;