ext2: Initialize i_flag after allocation.
authorpfg <pfg@FreeBSD.org>
Sun, 24 Jan 2016 02:25:41 +0000 (02:25 +0000)
committerpfg <pfg@FreeBSD.org>
Sun, 24 Jan 2016 02:25:41 +0000 (02:25 +0000)
commitd2a41899f8d761cd1c468704f6cb8c55d9a0be02
tree6e9dcc9dfbead7052c9ab00df9f242d0d88d5003
parentc917a39008740eaf29dc9d7f60f03e1b3984fee9
ext2: Initialize i_flag after allocation.

We use i_flag to carry some flags like IN_E4INDEX which newer
ext2fs variants uses internally.

fsck.ext3 rightfully complains after our implementation tags
non-directory inodes with INDEX_FL.

Initializing i_flag during allocation removes the noise factor
and quiets down fsck.

Patch from: Damjan Jovanovic
PR: 206530
sys/fs/ext2fs/ext2_alloc.c