Does not matter, because:
/* Allow converting from UFS2 to UFS2EA but not vice versa. */
if (newfs->fs_magic == FS_UFS2EA_MAGIC) {
ump->um_flags |= UFS_EA;
newfs->fs_magic = FS_UFS2_MAGIC;
} else {
if ((ump->um_flags & UFS_EA) != 0)
return EINVAL;
}
If that was not the case we would get corruption and crashes. But I agree with you, it is better to do the test one way and perhaps put it in a macro.
christosAttachment:
signature.asc
Description: Message signed with OpenPGP