3 @@ -2602,6 +2602,16 @@ int shmem_unuse(swp_entry_t entry, struc
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
20 @@ -2681,10 +2691,7 @@ int shmem_zero_setup(struct vm_area_stru
26 - vma->vm_file = file;
27 - vma->vm_ops = &shmem_vm_ops;
28 + shmem_set_file(vma, file);
34 @@ -270,6 +270,7 @@ int expand_files(struct files_struct *fi
35 /* All good, so we try */
36 return expand_fdtable(files, nr);
38 +EXPORT_SYMBOL_GPL(expand_files);
40 static int count_open_files(struct fdtable *fdt)
44 @@ -507,6 +507,7 @@ struct files_struct *get_files_struct(st
48 +EXPORT_SYMBOL_GPL(get_files_struct);
50 void put_files_struct(struct files_struct *files)
52 @@ -526,6 +527,7 @@ void put_files_struct(struct files_struc
56 +EXPORT_SYMBOL_GPL(put_files_struct);
58 void reset_files_struct(struct files_struct *files)
62 @@ -159,6 +159,7 @@ void __put_task_struct(struct task_struc
63 if (!profile_handoff_task(tsk))
66 +EXPORT_SYMBOL_GPL(__put_task_struct);
69 * macro override instead of weak attribute alias, to workaround
72 @@ -5981,6 +5981,7 @@ int can_nice(const struct task_struct *p
73 return (nice_rlim <= p->signal->rlim[RLIMIT_NICE].rlim_cur ||
74 capable(CAP_SYS_NICE));
76 +EXPORT_SYMBOL_GPL(can_nice);
78 #ifdef __ARCH_WANT_SYS_NICE
82 @@ -1064,6 +1064,7 @@ unsigned long zap_page_range(struct vm_a
83 tlb_finish_mmu(tlb, address, end);
86 +EXPORT_SYMBOL_GPL(zap_page_range);
89 * zap_vma_ptes - remove ptes mapping the vma
90 @@ -2490,6 +2491,7 @@ int vmtruncate_range(struct inode *inode
94 +EXPORT_SYMBOL_GPL(vmtruncate_range);
97 * We enter with non-exclusive mmap_sem (to exclude vma changes,
100 @@ -1101,6 +1101,7 @@ void unmap_kernel_range(unsigned long ad
101 vunmap_page_range(addr, end);
102 flush_tlb_kernel_range(addr, end);
104 +EXPORT_SYMBOL_GPL(unmap_kernel_range);
106 int map_vm_area(struct vm_struct *area, pgprot_t prot, struct page ***pages)
108 @@ -1214,6 +1215,7 @@ struct vm_struct *get_vm_area(unsigned l
109 return __get_vm_area_node(size, flags, VMALLOC_START, VMALLOC_END,
110 -1, GFP_KERNEL, __builtin_return_address(0));
112 +EXPORT_SYMBOL_GPL(get_vm_area);
114 struct vm_struct *get_vm_area_caller(unsigned long size, unsigned long flags,
116 --- a/include/linux/mm.h
117 +++ b/include/linux/mm.h
118 @@ -711,6 +711,7 @@ static inline int shmem_lock(struct file
120 struct file *shmem_file_setup(const char *name, loff_t size, unsigned long flags);
122 +void shmem_set_file(struct vm_area_struct *vma, struct file *file);
123 int shmem_zero_setup(struct vm_area_struct *);
126 --- a/kernel/signal.c
127 +++ b/kernel/signal.c
128 @@ -1061,6 +1061,7 @@ struct sighand_struct *lock_task_sighand
132 +EXPORT_SYMBOL(lock_task_sighand);
135 * send signal info to all the members of a group