Date: Thu, 10 Feb 2022 07:19:35 +0000 From: bugzilla-noreply@freebsd.org To: fs@FreeBSD.org Subject: [Bug 261850] fs/ext2fs: Fix bug in disk data block allocation Message-ID: <bug-261850-3630-cluoVmWW2t@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-261850-3630@https.bugs.freebsd.org/bugzilla/> References: <bug-261850-3630@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D261850 --- Comment #3 from chenguang.wang <chenguang.wang@terapines.com> --- Created attachment 231702 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D231702&action= =3Dedit fs/ext2fs: Fix bug in disk data block allocation. git diff fs/ext2fs/ext2_alloc.c diff --git a/fs/ext2fs/ext2_alloc.c b/fs/ext2fs/ext2_alloc.c index 4c265a1a8..9e05d02de 100644 --- a/fs/ext2fs/ext2_alloc.c +++ b/fs/ext2fs/ext2_alloc.c @@ -1067,7 +1067,7 @@ ext2_alloccg(struct inode *ip, int cg, daddr_t bpref,= int size) start =3D dtogd(fs, bpref) / NBBY; else start =3D 0; - end =3D howmany(fs->e2fs_fpg, NBBY) - start; + end =3D howmany(fs->e2fs_fpg, NBBY); retry: runlen =3D 0; runstart =3D 0; --=20 You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-261850-3630-cluoVmWW2t>