[PATCH openEuler-1.0-LTS 2/5] ext2: introduce helper for xattr entry validation