kernel - Fix issues where tmpfs loses file data