]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ext2fs: cleanup generation number management.
authorpfg <pfg@FreeBSD.org>
Tue, 7 Jun 2016 14:37:43 +0000 (14:37 +0000)
committerpfg <pfg@FreeBSD.org>
Tue, 7 Jun 2016 14:37:43 +0000 (14:37 +0000)
commit900e707c8ab5b0f551a6b1edd88b4393a62d5772
treeaa284024d214248685698b0ddc057f12104d45d7
parent91c2355efb33f3c21dd998a05b06d2e54c331c96
ext2fs: cleanup generation number management.

Ext2/3/4 manages generation numbers differently than UFS so adopt
some rules that should work well. When allocating a new inode,
make sure we generate a "good" random value specifically avoiding
zero.

Don't interfere with the numbers that are already generated in
the filesystem: ext2fs doesn't have the backwards compatibility
issues  where there were no generation numbers.

Reviewed by: kevlo
MFC after: 1 week
sys/fs/ext2fs/ext2_alloc.c
sys/fs/ext2fs/ext2_vfsops.c