@@ -2787,6 +2787,7 @@ int mem_cgroup_newpage_charge(struct page *page,
return mem_cgroup_charge_common(page, mm, gfp_mask,
MEM_CGROUP_CHARGE_TYPE_ANON);
}
+EXPORT_SYMBOL_GPL(mem_cgroup_cache_charge);
/*
* While swap-in, try_charge -> commit or cancel, the page is locked.
@@ -1947,6 +1947,7 @@ retry_cpuset:
goto retry_cpuset;
return page;
}
+EXPORT_SYMBOL_GPL(alloc_pages_vma);
/**
* alloc_pages_current - Allocate pages.
@@ -2840,6 +2840,7 @@ int shmem_zero_setup(struct vm_area_struct *vma)
vma->vm_ops = &shmem_vm_ops;
return 0;
}
+EXPORT_SYMBOL_GPL(shmem_zero_setup);
/**
* shmem_read_mapping_page_gfp - read into page cache, using specified page allocation flags.
Cc: Andrea Arcangeli <aarcange@redhat.com> Cc: Avi Kivity <avi@redhat.com> Cc: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> --- mm/memcontrol.c | 1 + mm/mempolicy.c | 1 + mm/shmem.c | 1 + 3 files changed, 3 insertions(+)