7 +void shmem_set_file(struct vm_area_struct *vma, struct file *file)
9 + ima_counts_get(file);
12 + vma->vm_file = file;
13 + vma->vm_ops = &shmem_vm_ops;
15 +EXPORT_SYMBOL_GPL(shmem_set_file);
18 * shmem_file_setup - get an unlinked file living in tmpfs
19 * @name: name for dentry (to be seen in /proc/<pid>/maps
26 - vma->vm_file = file;
27 - vma->vm_ops = &shmem_vm_ops;
28 + shmem_set_file(vma, file);
34 /* All good, so we try */
35 return expand_fdtable(files, nr);
37 +EXPORT_SYMBOL_GPL(expand_files);
39 static int count_open_files(struct fdtable *fdt)
47 +EXPORT_SYMBOL_GPL(get_files_struct);
49 void put_files_struct(struct files_struct *files)
55 +EXPORT_SYMBOL_GPL(put_files_struct);
57 void reset_files_struct(struct files_struct *files)
62 if (!profile_handoff_task(tsk))
65 +EXPORT_SYMBOL_GPL(__put_task_struct);
68 * macro override instead of weak attribute alias, to workaround
72 return (nice_rlim <= p->signal->rlim[RLIMIT_NICE].rlim_cur ||
73 capable(CAP_SYS_NICE));
75 +EXPORT_SYMBOL_GPL(can_nice);
77 #ifdef __ARCH_WANT_SYS_NICE
82 tlb_finish_mmu(tlb, address, end);
85 +EXPORT_SYMBOL_GPL(zap_page_range);
88 * zap_vma_ptes - remove ptes mapping the vma
93 +EXPORT_SYMBOL_GPL(vmtruncate_range);
96 * We enter with non-exclusive mmap_sem (to exclude vma changes,
100 vunmap_page_range(addr, end);
101 flush_tlb_kernel_range(addr, end);
103 +EXPORT_SYMBOL_GPL(unmap_kernel_range);
105 int map_vm_area(struct vm_struct *area, pgprot_t prot, struct page ***pages)
107 @@ -1287,6 +1288,7 @@
108 return __get_vm_area_node(size, 1, flags, VMALLOC_START, VMALLOC_END,
109 -1, GFP_KERNEL, __builtin_return_address(0));
111 +EXPORT_SYMBOL_GPL(get_vm_area);
113 struct vm_struct *get_vm_area_caller(unsigned long size, unsigned long flags,
115 --- a/include/linux/mm.h
116 +++ b/include/linux/mm.h
119 int shmem_lock(struct file *file, int lock, struct user_struct *user);
120 struct file *shmem_file_setup(const char *name, loff_t size, unsigned long flags);
121 +void shmem_set_file(struct vm_area_struct *vma, struct file *file);
122 int shmem_zero_setup(struct vm_area_struct *);
125 --- a/kernel/signal.c
126 +++ b/kernel/signal.c
127 @@ -1070,6 +1070,7 @@
131 +EXPORT_SYMBOL(lock_task_sighand);
134 * send signal info to all the members of a group