/* we do not have to muck with descriptors here, that is done in switch_mm() as needed.  */
int init_new_context(struct task_struct *tsk, struct mm_struct *mm)
/* we do not have to muck with descriptors here, that is done in switch_mm() as needed.  */
int init_new_context(struct task_struct *tsk, struct mm_struct *mm)
{
	struct mm_struct *old_mm;
	int retval = 0;
	mutex_init(&mm->context.lock);
	mm->context.size = 0;
	old_mm = current->mm;
	if (old_mm && old_mm->context.size > 0) {
		mutex_lock(&old_mm->context.lock);
		retval = copy_ldt(&mm->context, &old_mm->context);
		mutex_unlock(&old_mm->context.lock);
	}
	return retval;
}