[ar71xx] add AR913x specific GPIO function bit definitions
[openwrt.git] / target / linux / generic-2.6 / patches-2.6.28 / 980-vm_exports.patch
1 --- a/mm/shmem.c
2 +++ b/mm/shmem.c
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);
5 }
6
7 +void shmem_set_file(struct vm_area_struct *vma, struct file *file)
8 +{
9 + if (vma->vm_file)
10 + fput(vma->vm_file);
11 + vma->vm_file = file;
12 + vma->vm_ops = &shmem_vm_ops;
13 +}
14 +EXPORT_SYMBOL_GPL(shmem_set_file);
15 +
16 static struct file_system_type tmpfs_fs_type = {
17 .owner = THIS_MODULE,
18 .name = "tmpfs",
19 @@ -2600,9 +2609,6 @@ int shmem_zero_setup(struct vm_area_stru
20 if (IS_ERR(file))
21 return PTR_ERR(file);
22
23 - if (vma->vm_file)
24 - fput(vma->vm_file);
25 - vma->vm_file = file;
26 - vma->vm_ops = &shmem_vm_ops;
27 + shmem_set_file(vma, file);
28 return 0;
29 }
30 --- a/fs/file.c
31 +++ b/fs/file.c
32 @@ -270,6 +270,7 @@ int expand_files(struct files_struct *fi
33 /* All good, so we try */
34 return expand_fdtable(files, nr);
35 }
36 +EXPORT_SYMBOL_GPL(expand_files);
37
38 static int count_open_files(struct fdtable *fdt)
39 {
40 --- a/kernel/exit.c
41 +++ b/kernel/exit.c
42 @@ -509,6 +509,7 @@ struct files_struct *get_files_struct(st
43
44 return files;
45 }
46 +EXPORT_SYMBOL_GPL(get_files_struct);
47
48 void put_files_struct(struct files_struct *files)
49 {
50 @@ -528,6 +529,7 @@ void put_files_struct(struct files_struc
51 free_fdtable(fdt);
52 }
53 }
54 +EXPORT_SYMBOL_GPL(put_files_struct);
55
56 void reset_files_struct(struct files_struct *files)
57 {
58 --- a/kernel/fork.c
59 +++ b/kernel/fork.c
60 @@ -155,6 +155,7 @@ void __put_task_struct(struct task_struc
61 if (!profile_handoff_task(tsk))
62 free_task(tsk);
63 }
64 +EXPORT_SYMBOL_GPL(__put_task_struct);
65
66 /*
67 * macro override instead of weak attribute alias, to workaround
68 --- a/kernel/sched.c
69 +++ b/kernel/sched.c
70 @@ -5064,6 +5064,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));
73 }
74 +EXPORT_SYMBOL_GPL(can_nice);
75
76 #ifdef __ARCH_WANT_SYS_NICE
77
78 --- a/mm/memory.c
79 +++ b/mm/memory.c
80 @@ -993,6 +993,7 @@ unsigned long zap_page_range(struct vm_a
81 tlb_finish_mmu(tlb, address, end);
82 return end;
83 }
84 +EXPORT_SYMBOL_GPL(zap_page_range);
85
86 /**
87 * zap_vma_ptes - remove ptes mapping the vma
88 @@ -2271,6 +2272,7 @@ int vmtruncate_range(struct inode *inode
89
90 return 0;
91 }
92 +EXPORT_SYMBOL_GPL(vmtruncate_range);
93
94 /*
95 * We enter with non-exclusive mmap_sem (to exclude vma changes,
96 --- a/mm/vmalloc.c
97 +++ b/mm/vmalloc.c
98 @@ -1002,6 +1002,7 @@ void unmap_kernel_range(unsigned long ad
99 vunmap_page_range(addr, end);
100 flush_tlb_kernel_range(addr, end);
101 }
102 +EXPORT_SYMBOL_GPL(unmap_kernel_range);
103
104 int map_vm_area(struct vm_struct *area, pgprot_t prot, struct page ***pages)
105 {
106 @@ -1107,6 +1108,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));
109 }
110 +EXPORT_SYMBOL_GPL(get_vm_area);
111
112 struct vm_struct *get_vm_area_caller(unsigned long size, unsigned long flags,
113 void *caller)
This page took 0.052778 seconds and 5 git commands to generate.