aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFedor Uporov <fsu@FreeBSD.org>2023-01-26 10:06:25 +0000
committerFedor Uporov <fsu@FreeBSD.org>2023-01-29 08:11:02 +0000
commit344243fc9213f78b2af5f089cb8b9e0e60706705 (patch)
treeb0942d9640b66033434a6db7a4d9ae0491fd2ef4
parent509ee39ff28dfd738c42e26a9da928fc18e47c7f (diff)
downloadsrc-344243fc9213f78b2af5f089cb8b9e0e60706705.tar.gz
src-344243fc9213f78b2af5f089cb8b9e0e60706705.zip
Fix block bitmap end position computation
PR: 261850 Reported by: chenguang.wang MFC after: 2 weeks
-rw-r--r--sys/fs/ext2fs/ext2_alloc.c2
1 files changed, 1 insertions, 1 deletions
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;