Fix an incorrectly placed parenthesis.

While syntactically correct and even looking correct, it was definitely
not providing the desired result. And it has been this way for nearly
twenty years.

MFC after:    2 weeks
Sponsored by: The FreeBSD Foundation
This commit is contained in:
Kirk McKusick 2022-09-29 01:44:34 -07:00
parent 8d2c13931b
commit 221da3e921

View File

@ -689,7 +689,7 @@ ffs_snapshot(struct mount *mp, char *snapfile)
*blkp++ = lblkno(fs, fs->fs_sblockloc);
blkno = fragstoblks(fs, fs->fs_csaddr);
for (cg = 0; cg < fs->fs_ncg; cg++) {
if (fragstoblks(fs, cgtod(fs, cg) > blkno))
if (fragstoblks(fs, cgtod(fs, cg)) > blkno)
break;
*blkp++ = fragstoblks(fs, cgtod(fs, cg));
}