aufs3-standalone.patch 8.64 KB
Newer Older
Manuel's avatar
Manuel committed
1
aufs3.9 standalone patch
2 3

diff --git a/fs/file_table.c b/fs/file_table.c
Manuel's avatar
Manuel committed
4
index ca5948f..b553610 100644
5 6
--- a/fs/file_table.c
+++ b/fs/file_table.c
7
@@ -37,6 +37,7 @@ struct files_stat_struct files_stat = {
8 9 10 11 12 13 14
 };
 
 DEFINE_LGLOCK(files_lglock);
+EXPORT_SYMBOL_GPL(files_lglock);
 
 /* SLAB cache for file structures */
 static struct kmem_cache *filp_cachep __read_mostly;
Manuel's avatar
Manuel committed
15
@@ -404,6 +405,8 @@ void file_sb_list_del(struct file *file)
16 17 18 19 20 21 22 23 24
 	}
 }
 
+EXPORT_SYMBOL_GPL(file_sb_list_del);
+
 #ifdef CONFIG_SMP
 
 /*
diff --git a/fs/inode.c b/fs/inode.c
Manuel's avatar
Manuel committed
25
index e83cd1e..fa2245a 100644
26 27
--- a/fs/inode.c
+++ b/fs/inode.c
28
@@ -56,6 +56,7 @@ static struct hlist_head *inode_hashtable __read_mostly;
29 30 31 32 33 34 35
 static __cacheline_aligned_in_smp DEFINE_SPINLOCK(inode_hash_lock);
 
 __cacheline_aligned_in_smp DEFINE_SPINLOCK(inode_sb_list_lock);
+EXPORT_SYMBOL_GPL(inode_sb_list_lock);
 
 /*
  * Empty aops. Can be used for the cases where the user does not
Manuel's avatar
Manuel committed
36
@@ -1514,6 +1515,7 @@ int update_time(struct inode *inode, struct timespec *time, int flags)
37 38 39 40 41 42 43
 	mark_inode_dirty_sync(inode);
 	return 0;
 }
+EXPORT_SYMBOL_GPL(update_time);
 
 /**
  *	touch_atime	-	update the access time
44
diff --git a/fs/namespace.c b/fs/namespace.c
Manuel's avatar
Manuel committed
45
index 341d3f5..18f5bb0 100644
46 47
--- a/fs/namespace.c
+++ b/fs/namespace.c
Manuel's avatar
Manuel committed
48
@@ -52,6 +52,7 @@ EXPORT_SYMBOL_GPL(fs_kobj);
49 50 51 52 53 54 55
  * tree or hash is modified or when a vfsmount structure is modified.
  */
 DEFINE_BRLOCK(vfsmount_lock);
+EXPORT_SYMBOL_GPL(vfsmount_lock);
 
 static inline unsigned long hash(struct vfsmount *mnt, struct dentry *dentry)
 {
Manuel's avatar
Manuel committed
56 57 58 59 60 61 62 63 64
@@ -425,6 +426,7 @@ void __mnt_drop_write(struct vfsmount *mnt)
 	mnt_dec_writers(real_mount(mnt));
 	preempt_enable();
 }
+EXPORT_SYMBOL_GPL(__mnt_drop_write);
 
 /**
  * mnt_drop_write - give up write access to a mount
@@ -1417,6 +1419,7 @@ int iterate_mounts(int (*f)(struct vfsmount *, void *), void *arg,
65 66 67 68 69
 	}
 	return 0;
 }
+EXPORT_SYMBOL_GPL(iterate_mounts);
 
70
 static void cleanup_group_ids(struct mount *mnt, struct mount *end)
71 72
 {
diff --git a/fs/notify/group.c b/fs/notify/group.c
Manuel's avatar
Manuel committed
73
index bd2625b..2ff2a0f 100644
74 75 76 77 78 79 80 81 82 83
--- a/fs/notify/group.c
+++ b/fs/notify/group.c
@@ -22,6 +22,7 @@
 #include <linux/srcu.h>
 #include <linux/rculist.h>
 #include <linux/wait.h>
+#include <linux/module.h>
 
 #include <linux/fsnotify_backend.h>
 #include "fsnotify.h"
Manuel's avatar
Manuel committed
84 85 86 87 88 89 90 91 92
@@ -65,6 +66,7 @@ void fsnotify_get_group(struct fsnotify_group *group)
 {
 	atomic_inc(&group->refcnt);
 }
+EXPORT_SYMBOL_GPL(fsnotify_get_group);
 
 /*
  * Drop a reference to a group.  Free it if it's through.
@@ -74,6 +76,7 @@ void fsnotify_put_group(struct fsnotify_group *group)
93
 	if (atomic_dec_and_test(&group->refcnt))
Manuel's avatar
Manuel committed
94
 		fsnotify_final_destroy_group(group);
95 96 97 98 99
 }
+EXPORT_SYMBOL_GPL(fsnotify_put_group);
 
 /*
  * Create a new fsnotify_group and hold a reference for the group returned.
Manuel's avatar
Manuel committed
100
@@ -102,6 +105,7 @@ struct fsnotify_group *fsnotify_alloc_group(const struct fsnotify_ops *ops)
101 102 103 104
 
 	return group;
 }
+EXPORT_SYMBOL_GPL(fsnotify_alloc_group);
Manuel's avatar
Manuel committed
105 106 107
 
 int fsnotify_fasync(int fd, struct file *file, int on)
 {
108
diff --git a/fs/notify/mark.c b/fs/notify/mark.c
Manuel's avatar
Manuel committed
109
index fc6b49b..a6bb87d 100644
110 111
--- a/fs/notify/mark.c
+++ b/fs/notify/mark.c
Manuel's avatar
Manuel committed
112
@@ -115,6 +115,7 @@ void fsnotify_put_mark(struct fsnotify_mark *mark)
113
 		mark->free_mark(mark);
Manuel's avatar
Manuel committed
114
 	}
115 116 117 118 119
 }
+EXPORT_SYMBOL_GPL(fsnotify_put_mark);
 
 /*
  * Any time a mark is getting freed we end up here.
Manuel's avatar
Manuel committed
120 121 122
@@ -197,6 +198,7 @@ void fsnotify_destroy_mark(struct fsnotify_mark *mark,
 	fsnotify_destroy_mark_locked(mark, group);
 	mutex_unlock(&group->mark_mutex);
123 124 125 126 127
 }
+EXPORT_SYMBOL_GPL(fsnotify_destroy_mark);
 
 void fsnotify_set_mark_mask_locked(struct fsnotify_mark *mark, __u32 mask)
 {
Manuel's avatar
Manuel committed
128
@@ -281,6 +283,7 @@ err:
129 130 131 132 133
 
 	return ret;
 }
+EXPORT_SYMBOL_GPL(fsnotify_add_mark);
 
Manuel's avatar
Manuel committed
134 135 136
 int fsnotify_add_mark(struct fsnotify_mark *mark, struct fsnotify_group *group,
 		      struct inode *inode, struct vfsmount *mnt, int allow_dups)
@@ -342,6 +345,7 @@ void fsnotify_init_mark(struct fsnotify_mark *mark,
137 138 139 140 141 142 143 144
 	atomic_set(&mark->refcnt, 1);
 	mark->free_mark = free_mark;
 }
+EXPORT_SYMBOL_GPL(fsnotify_init_mark);
 
 static int fsnotify_mark_destroy(void *ignored)
 {
diff --git a/fs/open.c b/fs/open.c
Manuel's avatar
Manuel committed
145
index 6835446..df2262a 100644
146 147
--- a/fs/open.c
+++ b/fs/open.c
Manuel's avatar
Manuel committed
148
@@ -61,6 +61,7 @@ int do_truncate(struct dentry *dentry, loff_t length, unsigned int time_attrs,
149 150 151 152 153
 	mutex_unlock(&dentry->d_inode->i_mutex);
 	return ret;
 }
+EXPORT_SYMBOL_GPL(do_truncate);
 
Manuel's avatar
Manuel committed
154
 long vfs_truncate(struct path *path, loff_t length)
155 156
 {
diff --git a/fs/splice.c b/fs/splice.c
Manuel's avatar
Manuel committed
157
index 7117387..af8fd2d 100644
158 159
--- a/fs/splice.c
+++ b/fs/splice.c
Manuel's avatar
Manuel committed
160
@@ -1119,6 +1119,7 @@ long do_splice_from(struct pipe_inode_info *pipe, struct file *out,
161 162 163 164 165 166 167
 
 	return splice_write(pipe, out, ppos, len, flags);
 }
+EXPORT_SYMBOL_GPL(do_splice_from);
 
 /*
  * Attempt to initiate a splice from a file to a pipe.
Manuel's avatar
Manuel committed
168
@@ -1145,6 +1146,7 @@ long do_splice_to(struct file *in, loff_t *ppos,
169 170 171 172 173 174 175 176
 
 	return splice_read(in, ppos, pipe, len, flags);
 }
+EXPORT_SYMBOL_GPL(do_splice_to);
 
 /**
  * splice_direct_to_actor - splices data directly between two non-pipes
diff --git a/security/commoncap.c b/security/commoncap.c
Manuel's avatar
Manuel committed
177
index c44b6fe..d78b003 100644
178 179
--- a/security/commoncap.c
+++ b/security/commoncap.c
Manuel's avatar
Manuel committed
180
@@ -988,9 +988,11 @@ int cap_mmap_addr(unsigned long addr)
181 182 183
 	}
 	return ret;
 }
184 185 186 187 188 189 190 191
+EXPORT_SYMBOL_GPL(cap_mmap_addr);
 
 int cap_mmap_file(struct file *file, unsigned long reqprot,
 		  unsigned long prot, unsigned long flags)
 {
 	return 0;
 }
+EXPORT_SYMBOL_GPL(cap_mmap_file);
192
diff --git a/security/device_cgroup.c b/security/device_cgroup.c
Manuel's avatar
Manuel committed
193
index 1c69e38..7392d19 100644
194 195 196 197 198 199 200 201 202 203
--- a/security/device_cgroup.c
+++ b/security/device_cgroup.c
@@ -7,6 +7,7 @@
 #include <linux/device_cgroup.h>
 #include <linux/cgroup.h>
 #include <linux/ctype.h>
+#include <linux/export.h>
 #include <linux/list.h>
 #include <linux/uaccess.h>
 #include <linux/seq_file.h>
Manuel's avatar
Manuel committed
204
@@ -634,6 +635,7 @@ int __devcgroup_inode_permission(struct inode *inode, int mask)
abveritas's avatar
abveritas committed
205 206
 	return __devcgroup_check_permission(type, imajor(inode), iminor(inode),
 			access);
207 208 209 210 211 212
 }
+EXPORT_SYMBOL_GPL(__devcgroup_inode_permission);
 
 int devcgroup_inode_mknod(int mode, dev_t dev)
 {
diff --git a/security/security.c b/security/security.c
Manuel's avatar
Manuel committed
213
index 03f248b..892e803 100644
214 215
--- a/security/security.c
+++ b/security/security.c
abveritas's avatar
abveritas committed
216
@@ -396,6 +396,7 @@ int security_path_rmdir(struct path *dir, struct dentry *dentry)
217 218 219 220 221 222 223
 		return 0;
 	return security_ops->path_rmdir(dir, dentry);
 }
+EXPORT_SYMBOL_GPL(security_path_rmdir);
 
 int security_path_unlink(struct path *dir, struct dentry *dentry)
 {
abveritas's avatar
abveritas committed
224
@@ -412,6 +413,7 @@ int security_path_symlink(struct path *dir, struct dentry *dentry,
225 226 227 228 229 230 231
 		return 0;
 	return security_ops->path_symlink(dir, dentry, old_name);
 }
+EXPORT_SYMBOL_GPL(security_path_symlink);
 
 int security_path_link(struct dentry *old_dentry, struct path *new_dir,
 		       struct dentry *new_dentry)
abveritas's avatar
abveritas committed
232
@@ -420,6 +422,7 @@ int security_path_link(struct dentry *old_dentry, struct path *new_dir,
233 234 235 236 237 238 239
 		return 0;
 	return security_ops->path_link(old_dentry, new_dir, new_dentry);
 }
+EXPORT_SYMBOL_GPL(security_path_link);
 
 int security_path_rename(struct path *old_dir, struct dentry *old_dentry,
 			 struct path *new_dir, struct dentry *new_dentry)
abveritas's avatar
abveritas committed
240
@@ -438,6 +441,7 @@ int security_path_truncate(struct path *path)
241 242 243 244 245
 		return 0;
 	return security_ops->path_truncate(path);
 }
+EXPORT_SYMBOL_GPL(security_path_truncate);
 
246 247
 int security_path_chmod(struct path *path, umode_t mode)
 {
abveritas's avatar
abveritas committed
248
@@ -445,6 +449,7 @@ int security_path_chmod(struct path *path, umode_t mode)
249
 		return 0;
250
 	return security_ops->path_chmod(path, mode);
251 252 253
 }
+EXPORT_SYMBOL_GPL(security_path_chmod);
 
abveritas's avatar
abveritas committed
254
 int security_path_chown(struct path *path, kuid_t uid, kgid_t gid)
255
 {
abveritas's avatar
abveritas committed
256
@@ -452,6 +457,7 @@ int security_path_chown(struct path *path, kuid_t uid, kgid_t gid)
257 258 259 260 261 262 263
 		return 0;
 	return security_ops->path_chown(path, uid, gid);
 }
+EXPORT_SYMBOL_GPL(security_path_chown);
 
 int security_path_chroot(struct path *path)
 {
abveritas's avatar
abveritas committed
264
@@ -528,6 +534,7 @@ int security_inode_readlink(struct dentry *dentry)
265 266 267 268 269 270 271
 		return 0;
 	return security_ops->inode_readlink(dentry);
 }
+EXPORT_SYMBOL_GPL(security_inode_readlink);
 
 int security_inode_follow_link(struct dentry *dentry, struct nameidata *nd)
 {
abveritas's avatar
abveritas committed
272
@@ -542,6 +549,7 @@ int security_inode_permission(struct inode *inode, int mask)
273 274 275 276 277 278 279
 		return 0;
 	return security_ops->inode_permission(inode, mask);
 }
+EXPORT_SYMBOL_GPL(security_inode_permission);
 
 int security_inode_setattr(struct dentry *dentry, struct iattr *attr)
 {
abveritas's avatar
abveritas committed
280
@@ -663,6 +671,7 @@ int security_file_permission(struct file *file, int mask)
281 282 283 284 285 286 287
 
 	return fsnotify_perm(file, mask);
 }
+EXPORT_SYMBOL_GPL(security_file_permission);
 
 int security_file_alloc(struct file *file)
 {
abveritas's avatar
abveritas committed
288
@@ -723,6 +732,7 @@ int security_mmap_file(struct file *file, unsigned long prot,
289 290 291
 		return ret;
 	return ima_file_mmap(file, prot);
 }
292
+EXPORT_SYMBOL_GPL(security_mmap_file);
293
 
294 295
 int security_mmap_addr(unsigned long addr)
 {