libufs: Simplify generation number calculation.

UFS generation numbers have been unsigned since 2013 (r256435).
This commit is contained in:
Pedro F. Giffuni 2016-05-18 19:59:05 +00:00
parent fefbf77024
commit 44444759e5

View File

@ -157,7 +157,7 @@ cgialloc(struct uufsd *disk)
bzero(block, (int)fs->fs_bsize);
dp2 = (struct ufs2_dinode *)█
for (i = 0; i < INOPB(fs); i++) {
dp2->di_gen = arc4random() / 2 + 1;
dp2->di_gen = arc4random();
dp2++;
}
if (bwrite(disk, ino_to_fsba(fs,