OpenCloudOS-Kernel/mm/xfork.c

43 lines
777 B
C
Raw Normal View History

// SPDX-License-Identifier: GPL-2.0
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#include <linux/mm.h>
#include <linux/mmu_notifier.h>
noinline int memcg_xfork_enable(struct task_struct *p)
{
return 0;
}
noinline int xfork_quick_copy_page_range(struct vm_area_struct *dst_vma,
struct vm_area_struct *src_vma)
{
return -ENOMEM;
}
noinline bool pmd_wrprotect_by_xfork(pmd_t pmd)
{
return false;
}
noinline void xfork_fixup_pmd(struct vm_area_struct *mpnt, pmd_t *pmd, unsigned long addr)
{
}
noinline void xfork_wait_vma_copy_done(struct vm_area_struct *vma)
{
}
noinline void xfork_copy_update(void)
{
}
noinline void xfork_copy_cleanup(struct mm_struct *mm)
{
}
noinline void xfork_copy_handshake(struct mm_struct *parent, struct mm_struct *child, int val)
{
}