wok view linux-libre/stuff/aufs2-standalone.patch @ rev 10086

Up: feh to 1.14.1.
author Christopher Rogers <slaxemulator@gmail.com>
date Fri May 20 06:55:37 2011 +0000 (2011-05-20)
parents
children
line source
1 aufs2.1 standalone patch for linux-2.6.37
3 diff --git a/fs/file_table.c b/fs/file_table.c
4 index c3dee38..f529e4d 100644
5 --- a/fs/file_table.c
6 +++ b/fs/file_table.c
7 @@ -393,6 +393,8 @@ void file_sb_list_del(struct file *file)
8 }
9 }
11 +EXPORT_SYMBOL(file_sb_list_del);
12 +
13 #ifdef CONFIG_SMP
15 /*
16 diff --git a/fs/inode.c b/fs/inode.c
17 index ae2727a..2c8071a 100644
18 --- a/fs/inode.c
19 +++ b/fs/inode.c
20 @@ -82,6 +82,7 @@ static struct hlist_head *inode_hashtable __read_mostly;
21 * the i_state of an inode while it is in use..
22 */
23 DEFINE_SPINLOCK(inode_lock);
24 +EXPORT_SYMBOL(inode_lock);
26 /*
27 * iprune_sem provides exclusion between the kswapd or try_to_free_pages
28 diff --git a/fs/namei.c b/fs/namei.c
29 index a8c583f..b020c45 100644
30 --- a/fs/namei.c
31 +++ b/fs/namei.c
32 @@ -347,6 +347,7 @@ int deny_write_access(struct file * file)
34 return 0;
35 }
36 +EXPORT_SYMBOL(deny_write_access);
38 /**
39 * path_get - get a reference to a path
40 @@ -1165,6 +1166,7 @@ struct dentry *lookup_hash(struct nameidata *nd)
41 {
42 return __lookup_hash(&nd->last, nd->path.dentry, nd);
43 }
44 +EXPORT_SYMBOL(lookup_hash);
46 int __lookup_one_len(const char *name, struct qstr *this,
47 struct dentry *base, int len)
48 @@ -1187,6 +1189,7 @@ int __lookup_one_len(const char *name, struct qstr *this,
49 this->hash = end_name_hash(hash);
50 return 0;
51 }
52 +EXPORT_SYMBOL(__lookup_one_len);
54 /**
55 * lookup_one_len - filesystem helper to lookup single pathname component
56 diff --git a/fs/namespace.c b/fs/namespace.c
57 index 3dbfc07..3998762 100644
58 --- a/fs/namespace.c
59 +++ b/fs/namespace.c
60 @@ -1321,6 +1321,7 @@ int iterate_mounts(int (*f)(struct vfsmount *, void *), void *arg,
61 }
62 return 0;
63 }
64 +EXPORT_SYMBOL(iterate_mounts);
66 static void cleanup_group_ids(struct vfsmount *mnt, struct vfsmount *end)
67 {
68 diff --git a/fs/notify/group.c b/fs/notify/group.c
69 index d309f38..f0e9568 100644
70 --- a/fs/notify/group.c
71 +++ b/fs/notify/group.c
72 @@ -22,6 +22,7 @@
73 #include <linux/srcu.h>
74 #include <linux/rculist.h>
75 #include <linux/wait.h>
76 +#include <linux/module.h>
78 #include <linux/fsnotify_backend.h>
79 #include "fsnotify.h"
80 @@ -70,6 +71,7 @@ void fsnotify_put_group(struct fsnotify_group *group)
81 if (atomic_dec_and_test(&group->refcnt))
82 fsnotify_destroy_group(group);
83 }
84 +EXPORT_SYMBOL(fsnotify_put_group);
86 /*
87 * Create a new fsnotify_group and hold a reference for the group returned.
88 @@ -102,3 +104,4 @@ struct fsnotify_group *fsnotify_alloc_group(const struct fsnotify_ops *ops)
90 return group;
91 }
92 +EXPORT_SYMBOL(fsnotify_alloc_group);
93 diff --git a/fs/notify/mark.c b/fs/notify/mark.c
94 index 325185e..adede09 100644
95 --- a/fs/notify/mark.c
96 +++ b/fs/notify/mark.c
97 @@ -113,6 +113,7 @@ void fsnotify_put_mark(struct fsnotify_mark *mark)
98 if (atomic_dec_and_test(&mark->refcnt))
99 mark->free_mark(mark);
100 }
101 +EXPORT_SYMBOL(fsnotify_put_mark);
103 /*
104 * Any time a mark is getting freed we end up here.
105 @@ -190,6 +191,7 @@ void fsnotify_destroy_mark(struct fsnotify_mark *mark)
106 if (unlikely(atomic_dec_and_test(&group->num_marks)))
107 fsnotify_final_destroy_group(group);
108 }
109 +EXPORT_SYMBOL(fsnotify_destroy_mark);
111 void fsnotify_set_mark_mask_locked(struct fsnotify_mark *mark, __u32 mask)
112 {
113 @@ -277,6 +279,7 @@ err:
115 return ret;
116 }
117 +EXPORT_SYMBOL(fsnotify_add_mark);
119 /*
120 * clear any marks in a group in which mark->flags & flags is true
121 @@ -332,6 +335,7 @@ void fsnotify_init_mark(struct fsnotify_mark *mark,
122 atomic_set(&mark->refcnt, 1);
123 mark->free_mark = free_mark;
124 }
125 +EXPORT_SYMBOL(fsnotify_init_mark);
127 static int fsnotify_mark_destroy(void *ignored)
128 {
129 diff --git a/fs/open.c b/fs/open.c
130 index 4197b9e..912817a 100644
131 --- a/fs/open.c
132 +++ b/fs/open.c
133 @@ -60,6 +60,7 @@ int do_truncate(struct dentry *dentry, loff_t length, unsigned int time_attrs,
134 mutex_unlock(&dentry->d_inode->i_mutex);
135 return ret;
136 }
137 +EXPORT_SYMBOL(do_truncate);
139 static long do_sys_truncate(const char __user *pathname, loff_t length)
140 {
141 diff --git a/fs/splice.c b/fs/splice.c
142 index ff0ae69..1c9e9b0 100644
143 --- a/fs/splice.c
144 +++ b/fs/splice.c
145 @@ -1116,6 +1116,7 @@ long do_splice_from(struct pipe_inode_info *pipe, struct file *out,
147 return splice_write(pipe, out, ppos, len, flags);
148 }
149 +EXPORT_SYMBOL(do_splice_from);
151 /*
152 * Attempt to initiate a splice from a file to a pipe.
153 @@ -1142,6 +1143,7 @@ long do_splice_to(struct file *in, loff_t *ppos,
155 return splice_read(in, ppos, pipe, len, flags);
156 }
157 +EXPORT_SYMBOL(do_splice_to);
159 /**
160 * splice_direct_to_actor - splices data directly between two non-pipes
161 diff --git a/security/commoncap.c b/security/commoncap.c
162 index 64c2ed9..e58b5d8 100644
163 --- a/security/commoncap.c
164 +++ b/security/commoncap.c
165 @@ -929,3 +929,4 @@ int cap_file_mmap(struct file *file, unsigned long reqprot,
166 }
167 return ret;
168 }
169 +EXPORT_SYMBOL(cap_file_mmap);
170 diff --git a/security/device_cgroup.c b/security/device_cgroup.c
171 index 8d9c48f..29108aa 100644
172 --- a/security/device_cgroup.c
173 +++ b/security/device_cgroup.c
174 @@ -515,6 +515,7 @@ found:
176 return -EPERM;
177 }
178 +EXPORT_SYMBOL(devcgroup_inode_permission);
180 int devcgroup_inode_mknod(int mode, dev_t dev)
181 {
182 diff --git a/security/security.c b/security/security.c
183 index 1b798d3..3b7d2ca 100644
184 --- a/security/security.c
185 +++ b/security/security.c
186 @@ -360,6 +360,7 @@ int security_path_mkdir(struct path *dir, struct dentry *dentry, int mode)
187 return 0;
188 return security_ops->path_mkdir(dir, dentry, mode);
189 }
190 +EXPORT_SYMBOL(security_path_mkdir);
192 int security_path_rmdir(struct path *dir, struct dentry *dentry)
193 {
194 @@ -367,6 +368,7 @@ int security_path_rmdir(struct path *dir, struct dentry *dentry)
195 return 0;
196 return security_ops->path_rmdir(dir, dentry);
197 }
198 +EXPORT_SYMBOL(security_path_rmdir);
200 int security_path_unlink(struct path *dir, struct dentry *dentry)
201 {
202 @@ -374,6 +376,7 @@ int security_path_unlink(struct path *dir, struct dentry *dentry)
203 return 0;
204 return security_ops->path_unlink(dir, dentry);
205 }
206 +EXPORT_SYMBOL(security_path_unlink);
208 int security_path_symlink(struct path *dir, struct dentry *dentry,
209 const char *old_name)
210 @@ -382,6 +385,7 @@ int security_path_symlink(struct path *dir, struct dentry *dentry,
211 return 0;
212 return security_ops->path_symlink(dir, dentry, old_name);
213 }
214 +EXPORT_SYMBOL(security_path_symlink);
216 int security_path_link(struct dentry *old_dentry, struct path *new_dir,
217 struct dentry *new_dentry)
218 @@ -390,6 +394,7 @@ int security_path_link(struct dentry *old_dentry, struct path *new_dir,
219 return 0;
220 return security_ops->path_link(old_dentry, new_dir, new_dentry);
221 }
222 +EXPORT_SYMBOL(security_path_link);
224 int security_path_rename(struct path *old_dir, struct dentry *old_dentry,
225 struct path *new_dir, struct dentry *new_dentry)
226 @@ -400,6 +405,7 @@ int security_path_rename(struct path *old_dir, struct dentry *old_dentry,
227 return security_ops->path_rename(old_dir, old_dentry, new_dir,
228 new_dentry);
229 }
230 +EXPORT_SYMBOL(security_path_rename);
232 int security_path_truncate(struct path *path)
233 {
234 @@ -407,6 +413,7 @@ int security_path_truncate(struct path *path)
235 return 0;
236 return security_ops->path_truncate(path);
237 }
238 +EXPORT_SYMBOL(security_path_truncate);
240 int security_path_chmod(struct dentry *dentry, struct vfsmount *mnt,
241 mode_t mode)
242 @@ -415,6 +422,7 @@ int security_path_chmod(struct dentry *dentry, struct vfsmount *mnt,
243 return 0;
244 return security_ops->path_chmod(dentry, mnt, mode);
245 }
246 +EXPORT_SYMBOL(security_path_chmod);
248 int security_path_chown(struct path *path, uid_t uid, gid_t gid)
249 {
250 @@ -422,6 +430,7 @@ int security_path_chown(struct path *path, uid_t uid, gid_t gid)
251 return 0;
252 return security_ops->path_chown(path, uid, gid);
253 }
254 +EXPORT_SYMBOL(security_path_chown);
256 int security_path_chroot(struct path *path)
257 {
258 @@ -498,6 +507,7 @@ int security_inode_readlink(struct dentry *dentry)
259 return 0;
260 return security_ops->inode_readlink(dentry);
261 }
262 +EXPORT_SYMBOL(security_inode_readlink);
264 int security_inode_follow_link(struct dentry *dentry, struct nameidata *nd)
265 {
266 @@ -512,6 +522,7 @@ int security_inode_permission(struct inode *inode, int mask)
267 return 0;
268 return security_ops->inode_permission(inode, mask);
269 }
270 +EXPORT_SYMBOL(security_inode_permission);
272 int security_inode_setattr(struct dentry *dentry, struct iattr *attr)
273 {
274 @@ -611,6 +622,7 @@ int security_file_permission(struct file *file, int mask)
276 return fsnotify_perm(file, mask);
277 }
278 +EXPORT_SYMBOL(security_file_permission);
280 int security_file_alloc(struct file *file)
281 {
282 @@ -638,6 +650,7 @@ int security_file_mmap(struct file *file, unsigned long reqprot,
283 return ret;
284 return ima_file_mmap(file, prot);
285 }
286 +EXPORT_SYMBOL(security_file_mmap);
288 int security_file_mprotect(struct vm_area_struct *vma, unsigned long reqprot,
289 unsigned long prot)