Fix block bitmap end position computation

PR:                     261850
Reported by:            chenguang.wang
MFC after:              2 weeks
This commit is contained in:
Fedor Uporov 2023-01-26 13:06:25 +03:00
parent 509ee39ff2
commit 344243fc92

View File

@ -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;