/* It is also safe to call this with a task pointer of current, which the static wrapper mpol_set_task_struct_flag() does, for use within this file.  */
void mpol_fix_fork_child_flag(struct task_struct *p)
/* It is also safe to call this with a task pointer of current, which the static wrapper mpol_set_task_struct_flag() does, for use within this file.  */
void mpol_fix_fork_child_flag(struct task_struct *p)
{
	if (p->mempolicy)
		p->flags |= PF_MEMPOLICY;
	else
		p->flags &= ~PF_MEMPOLICY;
}