1 aufs3.1 standalone patch
3 diff --git a/fs/file_table.c b/fs/file_table.c
4 index c322794..2aad244 100644
7 @@ -443,6 +443,8 @@ void file_sb_list_del(struct file *file)
11 +EXPORT_SYMBOL(file_sb_list_del);
16 diff --git a/fs/inode.c b/fs/inode.c
17 index ec79246..46ac6f9 100644
20 @@ -65,6 +65,7 @@ static struct hlist_head *inode_hashtable __read_mostly;
21 static __cacheline_aligned_in_smp DEFINE_SPINLOCK(inode_hash_lock);
23 __cacheline_aligned_in_smp DEFINE_SPINLOCK(inode_sb_list_lock);
24 +EXPORT_SYMBOL(inode_sb_list_lock);
27 * Empty aops. Can be used for the cases where the user does not
28 diff --git a/fs/namei.c b/fs/namei.c
29 index 8edad02..50e8718 100644
32 @@ -1752,6 +1752,7 @@ struct dentry *lookup_hash(struct nameidata *nd)
34 return __lookup_hash(&nd->last, nd->path.dentry, nd);
36 +EXPORT_SYMBOL(lookup_hash);
39 * lookup_one_len - filesystem helper to lookup single pathname component
40 diff --git a/fs/namespace.c b/fs/namespace.c
41 index b4febb2..598a308 100644
44 @@ -1508,6 +1508,7 @@ int iterate_mounts(int (*f)(struct vfsmount *, void *), void *arg,
48 +EXPORT_SYMBOL(iterate_mounts);
50 static void cleanup_group_ids(struct vfsmount *mnt, struct vfsmount *end)
52 diff --git a/fs/notify/group.c b/fs/notify/group.c
53 index 63fc294..6f4adca 100644
54 --- a/fs/notify/group.c
55 +++ b/fs/notify/group.c
57 #include <linux/srcu.h>
58 #include <linux/rculist.h>
59 #include <linux/wait.h>
60 +#include <linux/module.h>
62 #include <linux/fsnotify_backend.h>
64 @@ -70,6 +71,7 @@ void fsnotify_put_group(struct fsnotify_group *group)
65 if (atomic_dec_and_test(&group->refcnt))
66 fsnotify_destroy_group(group);
68 +EXPORT_SYMBOL(fsnotify_put_group);
71 * Create a new fsnotify_group and hold a reference for the group returned.
72 @@ -102,3 +104,4 @@ struct fsnotify_group *fsnotify_alloc_group(const struct fsnotify_ops *ops)
76 +EXPORT_SYMBOL(fsnotify_alloc_group);
77 diff --git a/fs/notify/mark.c b/fs/notify/mark.c
78 index e14587d..be6533b 100644
79 --- a/fs/notify/mark.c
80 +++ b/fs/notify/mark.c
81 @@ -112,6 +112,7 @@ void fsnotify_put_mark(struct fsnotify_mark *mark)
82 if (atomic_dec_and_test(&mark->refcnt))
83 mark->free_mark(mark);
85 +EXPORT_SYMBOL(fsnotify_put_mark);
88 * Any time a mark is getting freed we end up here.
89 @@ -189,6 +190,7 @@ void fsnotify_destroy_mark(struct fsnotify_mark *mark)
90 if (unlikely(atomic_dec_and_test(&group->num_marks)))
91 fsnotify_final_destroy_group(group);
93 +EXPORT_SYMBOL(fsnotify_destroy_mark);
95 void fsnotify_set_mark_mask_locked(struct fsnotify_mark *mark, __u32 mask)
97 @@ -276,6 +278,7 @@ err:
101 +EXPORT_SYMBOL(fsnotify_add_mark);
104 * clear any marks in a group in which mark->flags & flags is true
105 @@ -331,6 +334,7 @@ void fsnotify_init_mark(struct fsnotify_mark *mark,
106 atomic_set(&mark->refcnt, 1);
107 mark->free_mark = free_mark;
109 +EXPORT_SYMBOL(fsnotify_init_mark);
111 static int fsnotify_mark_destroy(void *ignored)
113 diff --git a/fs/open.c b/fs/open.c
114 index f711921..d742fc0 100644
117 @@ -60,6 +60,7 @@ int do_truncate(struct dentry *dentry, loff_t length, unsigned int time_attrs,
118 mutex_unlock(&dentry->d_inode->i_mutex);
121 +EXPORT_SYMBOL(do_truncate);
123 static long do_sys_truncate(const char __user *pathname, loff_t length)
125 diff --git a/fs/splice.c b/fs/splice.c
126 index e3569b0..9dc07b7 100644
129 @@ -1109,6 +1109,7 @@ long do_splice_from(struct pipe_inode_info *pipe, struct file *out,
131 return splice_write(pipe, out, ppos, len, flags);
133 +EXPORT_SYMBOL(do_splice_from);
136 * Attempt to initiate a splice from a file to a pipe.
137 @@ -1135,6 +1136,7 @@ long do_splice_to(struct file *in, loff_t *ppos,
139 return splice_read(in, ppos, pipe, len, flags);
141 +EXPORT_SYMBOL(do_splice_to);
144 * splice_direct_to_actor - splices data directly between two non-pipes
145 diff --git a/security/commoncap.c b/security/commoncap.c
146 index a93b3b7..024282c 100644
147 --- a/security/commoncap.c
148 +++ b/security/commoncap.c
149 @@ -971,3 +971,4 @@ int cap_file_mmap(struct file *file, unsigned long reqprot,
153 +EXPORT_SYMBOL(cap_file_mmap);
154 diff --git a/security/device_cgroup.c b/security/device_cgroup.c
155 index 4450fbe..2c437e5 100644
156 --- a/security/device_cgroup.c
157 +++ b/security/device_cgroup.c
158 @@ -500,6 +500,7 @@ found:
162 +EXPORT_SYMBOL(__devcgroup_inode_permission);
164 int devcgroup_inode_mknod(int mode, dev_t dev)
166 diff --git a/security/security.c b/security/security.c
167 index d9e1533..466ee5c 100644
168 --- a/security/security.c
169 +++ b/security/security.c
170 @@ -373,6 +373,7 @@ int security_path_rmdir(struct path *dir, struct dentry *dentry)
172 return security_ops->path_rmdir(dir, dentry);
174 +EXPORT_SYMBOL(security_path_rmdir);
176 int security_path_unlink(struct path *dir, struct dentry *dentry)
178 @@ -389,6 +390,7 @@ int security_path_symlink(struct path *dir, struct dentry *dentry,
180 return security_ops->path_symlink(dir, dentry, old_name);
182 +EXPORT_SYMBOL(security_path_symlink);
184 int security_path_link(struct dentry *old_dentry, struct path *new_dir,
185 struct dentry *new_dentry)
186 @@ -397,6 +399,7 @@ int security_path_link(struct dentry *old_dentry, struct path *new_dir,
188 return security_ops->path_link(old_dentry, new_dir, new_dentry);
190 +EXPORT_SYMBOL(security_path_link);
192 int security_path_rename(struct path *old_dir, struct dentry *old_dentry,
193 struct path *new_dir, struct dentry *new_dentry)
194 @@ -415,6 +418,7 @@ int security_path_truncate(struct path *path)
196 return security_ops->path_truncate(path);
198 +EXPORT_SYMBOL(security_path_truncate);
200 int security_path_chmod(struct dentry *dentry, struct vfsmount *mnt,
202 @@ -423,6 +427,7 @@ int security_path_chmod(struct dentry *dentry, struct vfsmount *mnt,
204 return security_ops->path_chmod(dentry, mnt, mode);
206 +EXPORT_SYMBOL(security_path_chmod);
208 int security_path_chown(struct path *path, uid_t uid, gid_t gid)
210 @@ -430,6 +435,7 @@ int security_path_chown(struct path *path, uid_t uid, gid_t gid)
212 return security_ops->path_chown(path, uid, gid);
214 +EXPORT_SYMBOL(security_path_chown);
216 int security_path_chroot(struct path *path)
218 @@ -506,6 +512,7 @@ int security_inode_readlink(struct dentry *dentry)
220 return security_ops->inode_readlink(dentry);
222 +EXPORT_SYMBOL(security_inode_readlink);
224 int security_inode_follow_link(struct dentry *dentry, struct nameidata *nd)
226 @@ -520,6 +527,7 @@ int security_inode_permission(struct inode *inode, int mask)
228 return security_ops->inode_permission(inode, mask);
230 +EXPORT_SYMBOL(security_inode_permission);
232 int security_inode_setattr(struct dentry *dentry, struct iattr *attr)
234 @@ -619,6 +627,7 @@ int security_file_permission(struct file *file, int mask)
236 return fsnotify_perm(file, mask);
238 +EXPORT_SYMBOL(security_file_permission);
240 int security_file_alloc(struct file *file)
242 @@ -646,6 +655,7 @@ int security_file_mmap(struct file *file, unsigned long reqprot,
244 return ima_file_mmap(file, prot);
246 +EXPORT_SYMBOL(security_file_mmap);
248 int security_file_mprotect(struct vm_area_struct *vma, unsigned long reqprot,