3 @@ -2480,6 +2480,15 @@ static int shmem_get_sb(struct file_syst
4 return get_sb_nodev(fs_type, flags, data, shmem_fill_super, mnt);
7 +void shmem_set_file(struct vm_area_struct *vma, struct file *file)
11 + vma->vm_file = file;
12 + vma->vm_ops = &shmem_vm_ops;
14 +EXPORT_SYMBOL_GPL(shmem_set_file);
16 static struct file_system_type tmpfs_fs_type = {
19 @@ -2600,9 +2609,6 @@ int shmem_zero_setup(struct vm_area_stru
25 - vma->vm_file = file;
26 - vma->vm_ops = &shmem_vm_ops;
27 + shmem_set_file(vma, vma->vm_file);
32 @@ -270,6 +270,7 @@ int expand_files(struct files_struct *fi
33 /* All good, so we try */
34 return expand_fdtable(files, nr);
36 +EXPORT_SYMBOL_GPL(expand_files);
38 static int count_open_files(struct fdtable *fdt)
42 @@ -509,6 +509,7 @@ struct files_struct *get_files_struct(st
46 +EXPORT_SYMBOL_GPL(get_files_struct);
48 void put_files_struct(struct files_struct *files)
50 @@ -528,6 +529,7 @@ void put_files_struct(struct files_struc
54 +EXPORT_SYMBOL_GPL(put_files_struct);
56 void reset_files_struct(struct files_struct *files)
60 @@ -155,6 +155,7 @@ void __put_task_struct(struct task_struc
61 if (!profile_handoff_task(tsk))
64 +EXPORT_SYMBOL_GPL(__put_task_struct);
67 * macro override instead of weak attribute alias, to workaround
70 @@ -5015,6 +5015,7 @@ int can_nice(const struct task_struct *p
71 return (nice_rlim <= p->signal->rlim[RLIMIT_NICE].rlim_cur ||
72 capable(CAP_SYS_NICE));
74 +EXPORT_SYMBOL_GPL(can_nice);
76 #ifdef __ARCH_WANT_SYS_NICE
80 @@ -993,6 +993,7 @@ unsigned long zap_page_range(struct vm_a
81 tlb_finish_mmu(tlb, address, end);
84 +EXPORT_SYMBOL_GPL(zap_page_range);
87 * zap_vma_ptes - remove ptes mapping the vma
88 @@ -2271,6 +2272,7 @@ int vmtruncate_range(struct inode *inode
92 +EXPORT_SYMBOL_GPL(vmtruncate_range);
95 * We enter with non-exclusive mmap_sem (to exclude vma changes,
98 @@ -980,6 +980,7 @@ void unmap_kernel_range(unsigned long ad
99 vunmap_page_range(addr, end);
100 flush_tlb_kernel_range(addr, end);
102 +EXPORT_SYMBOL_GPL(unmap_kernel_range);
104 int map_vm_area(struct vm_struct *area, pgprot_t prot, struct page ***pages)
106 @@ -1085,6 +1086,7 @@ struct vm_struct *get_vm_area(unsigned l
107 return __get_vm_area_node(size, flags, VMALLOC_START, VMALLOC_END,
108 -1, GFP_KERNEL, __builtin_return_address(0));
110 +EXPORT_SYMBOL_GPL(get_vm_area);
112 struct vm_struct *get_vm_area_caller(unsigned long size, unsigned long flags,