wok-backports diff linux/stuff/aufs2-standalone.patch @ rev 5
linux-kvm: fix module list
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Dec 19 15:27:00 2013 +0000 (2013-12-19) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/linux/stuff/aufs2-standalone.patch Thu Dec 19 15:27:00 2013 +0000 1.3 @@ -0,0 +1,257 @@ 1.4 +aufs2.1 standalone patch for linux-2.6. 1.5 + 1.6 +diff --git a/fs/file_table.c b/fs/file_table.c 1.7 +index 01e4c1e..0e800e2 100644 1.8 +--- a/fs/file_table.c 1.9 ++++ b/fs/file_table.c 1.10 +@@ -443,6 +443,8 @@ void file_sb_list_del(struct file *file) 1.11 + } 1.12 + } 1.13 + 1.14 ++EXPORT_SYMBOL(file_sb_list_del); 1.15 ++ 1.16 + #ifdef CONFIG_SMP 1.17 + 1.18 + /* 1.19 +diff --git a/fs/inode.c b/fs/inode.c 1.20 +index 43566d1..4291eae 100644 1.21 +--- a/fs/inode.c 1.22 ++++ b/fs/inode.c 1.23 +@@ -69,6 +69,7 @@ static DEFINE_SPINLOCK(inode_lru_lock); 1.24 + 1.25 + __cacheline_aligned_in_smp DEFINE_SPINLOCK(inode_sb_list_lock); 1.26 + __cacheline_aligned_in_smp DEFINE_SPINLOCK(inode_wb_list_lock); 1.27 ++EXPORT_SYMBOL(inode_sb_list_lock); 1.28 + 1.29 + /* 1.30 + * iprune_sem provides exclusion between the icache shrinking and the 1.31 +diff --git a/fs/namei.c b/fs/namei.c 1.32 +index 95978ec..f86d670 100644 1.33 +--- a/fs/namei.c 1.34 ++++ b/fs/namei.c 1.35 +@@ -365,6 +365,7 @@ int deny_write_access(struct file * file) 1.36 + 1.37 + return 0; 1.38 + } 1.39 ++EXPORT_SYMBOL(deny_write_access); 1.40 + 1.41 + /** 1.42 + * path_get - get a reference to a path 1.43 +@@ -1696,6 +1697,7 @@ struct dentry *lookup_hash(struct nameidata *nd) 1.44 + { 1.45 + return __lookup_hash(&nd->last, nd->path.dentry, nd); 1.46 + } 1.47 ++EXPORT_SYMBOL(lookup_hash); 1.48 + 1.49 + /** 1.50 + * lookup_one_len - filesystem helper to lookup single pathname component 1.51 +diff --git a/fs/namespace.c b/fs/namespace.c 1.52 +index fe59bd1..7d3843f 100644 1.53 +--- a/fs/namespace.c 1.54 ++++ b/fs/namespace.c 1.55 +@@ -1508,6 +1508,7 @@ int iterate_mounts(int (*f)(struct vfsmount *, void *), void *arg, 1.56 + } 1.57 + return 0; 1.58 + } 1.59 ++EXPORT_SYMBOL(iterate_mounts); 1.60 + 1.61 + static void cleanup_group_ids(struct vfsmount *mnt, struct vfsmount *end) 1.62 + { 1.63 +diff --git a/fs/notify/group.c b/fs/notify/group.c 1.64 +index d309f38..f0e9568 100644 1.65 +--- a/fs/notify/group.c 1.66 ++++ b/fs/notify/group.c 1.67 +@@ -22,6 +22,7 @@ 1.68 + #include <linux/srcu.h> 1.69 + #include <linux/rculist.h> 1.70 + #include <linux/wait.h> 1.71 ++#include <linux/module.h> 1.72 + 1.73 + #include <linux/fsnotify_backend.h> 1.74 + #include "fsnotify.h" 1.75 +@@ -70,6 +71,7 @@ void fsnotify_put_group(struct fsnotify_group *group) 1.76 + if (atomic_dec_and_test(&group->refcnt)) 1.77 + fsnotify_destroy_group(group); 1.78 + } 1.79 ++EXPORT_SYMBOL(fsnotify_put_group); 1.80 + 1.81 + /* 1.82 + * Create a new fsnotify_group and hold a reference for the group returned. 1.83 +@@ -102,3 +104,4 @@ struct fsnotify_group *fsnotify_alloc_group(const struct fsnotify_ops *ops) 1.84 + 1.85 + return group; 1.86 + } 1.87 ++EXPORT_SYMBOL(fsnotify_alloc_group); 1.88 +diff --git a/fs/notify/mark.c b/fs/notify/mark.c 1.89 +index 252ab1f..2199b9b 100644 1.90 +--- a/fs/notify/mark.c 1.91 ++++ b/fs/notify/mark.c 1.92 +@@ -112,6 +112,7 @@ void fsnotify_put_mark(struct fsnotify_mark *mark) 1.93 + if (atomic_dec_and_test(&mark->refcnt)) 1.94 + mark->free_mark(mark); 1.95 + } 1.96 ++EXPORT_SYMBOL(fsnotify_put_mark); 1.97 + 1.98 + /* 1.99 + * Any time a mark is getting freed we end up here. 1.100 +@@ -189,6 +190,7 @@ void fsnotify_destroy_mark(struct fsnotify_mark *mark) 1.101 + if (unlikely(atomic_dec_and_test(&group->num_marks))) 1.102 + fsnotify_final_destroy_group(group); 1.103 + } 1.104 ++EXPORT_SYMBOL(fsnotify_destroy_mark); 1.105 + 1.106 + void fsnotify_set_mark_mask_locked(struct fsnotify_mark *mark, __u32 mask) 1.107 + { 1.108 +@@ -276,6 +278,7 @@ err: 1.109 + 1.110 + return ret; 1.111 + } 1.112 ++EXPORT_SYMBOL(fsnotify_add_mark); 1.113 + 1.114 + /* 1.115 + * clear any marks in a group in which mark->flags & flags is true 1.116 +@@ -331,6 +334,7 @@ void fsnotify_init_mark(struct fsnotify_mark *mark, 1.117 + atomic_set(&mark->refcnt, 1); 1.118 + mark->free_mark = free_mark; 1.119 + } 1.120 ++EXPORT_SYMBOL(fsnotify_init_mark); 1.121 + 1.122 + static int fsnotify_mark_destroy(void *ignored) 1.123 + { 1.124 +diff --git a/fs/open.c b/fs/open.c 1.125 +index b52cf01..c1b341c 100644 1.126 +--- a/fs/open.c 1.127 ++++ b/fs/open.c 1.128 +@@ -60,6 +60,7 @@ int do_truncate(struct dentry *dentry, loff_t length, unsigned int time_attrs, 1.129 + mutex_unlock(&dentry->d_inode->i_mutex); 1.130 + return ret; 1.131 + } 1.132 ++EXPORT_SYMBOL(do_truncate); 1.133 + 1.134 + static long do_sys_truncate(const char __user *pathname, loff_t length) 1.135 + { 1.136 +diff --git a/fs/splice.c b/fs/splice.c 1.137 +index 19afec6..11f07f8 100644 1.138 +--- a/fs/splice.c 1.139 ++++ b/fs/splice.c 1.140 +@@ -1109,6 +1109,7 @@ long do_splice_from(struct pipe_inode_info *pipe, struct file *out, 1.141 + 1.142 + return splice_write(pipe, out, ppos, len, flags); 1.143 + } 1.144 ++EXPORT_SYMBOL(do_splice_from); 1.145 + 1.146 + /* 1.147 + * Attempt to initiate a splice from a file to a pipe. 1.148 +@@ -1135,6 +1136,7 @@ long do_splice_to(struct file *in, loff_t *ppos, 1.149 + 1.150 + return splice_read(in, ppos, pipe, len, flags); 1.151 + } 1.152 ++EXPORT_SYMBOL(do_splice_to); 1.153 + 1.154 + /** 1.155 + * splice_direct_to_actor - splices data directly between two non-pipes 1.156 +diff --git a/security/commoncap.c b/security/commoncap.c 1.157 +index a93b3b7..024282c 100644 1.158 +--- a/security/commoncap.c 1.159 ++++ b/security/commoncap.c 1.160 +@@ -971,3 +971,4 @@ int cap_file_mmap(struct file *file, unsigned long reqprot, 1.161 + } 1.162 + return ret; 1.163 + } 1.164 ++EXPORT_SYMBOL(cap_file_mmap); 1.165 +diff --git a/security/device_cgroup.c b/security/device_cgroup.c 1.166 +index 1be6826..215278c 100644 1.167 +--- a/security/device_cgroup.c 1.168 ++++ b/security/device_cgroup.c 1.169 +@@ -508,6 +508,7 @@ found: 1.170 + 1.171 + return -EPERM; 1.172 + } 1.173 ++EXPORT_SYMBOL(__devcgroup_inode_permission); 1.174 + 1.175 + int devcgroup_inode_mknod(int mode, dev_t dev) 1.176 + { 1.177 +diff --git a/security/security.c b/security/security.c 1.178 +index 4ba6d4c..9f64bb8 100644 1.179 +--- a/security/security.c 1.180 ++++ b/security/security.c 1.181 +@@ -373,6 +373,7 @@ int security_path_rmdir(struct path *dir, struct dentry *dentry) 1.182 + return 0; 1.183 + return security_ops->path_rmdir(dir, dentry); 1.184 + } 1.185 ++EXPORT_SYMBOL(security_path_rmdir); 1.186 + 1.187 + int security_path_unlink(struct path *dir, struct dentry *dentry) 1.188 + { 1.189 +@@ -389,6 +390,7 @@ int security_path_symlink(struct path *dir, struct dentry *dentry, 1.190 + return 0; 1.191 + return security_ops->path_symlink(dir, dentry, old_name); 1.192 + } 1.193 ++EXPORT_SYMBOL(security_path_symlink); 1.194 + 1.195 + int security_path_link(struct dentry *old_dentry, struct path *new_dir, 1.196 + struct dentry *new_dentry) 1.197 +@@ -397,6 +399,7 @@ int security_path_link(struct dentry *old_dentry, struct path *new_dir, 1.198 + return 0; 1.199 + return security_ops->path_link(old_dentry, new_dir, new_dentry); 1.200 + } 1.201 ++EXPORT_SYMBOL(security_path_link); 1.202 + 1.203 + int security_path_rename(struct path *old_dir, struct dentry *old_dentry, 1.204 + struct path *new_dir, struct dentry *new_dentry) 1.205 +@@ -415,6 +418,7 @@ int security_path_truncate(struct path *path) 1.206 + return 0; 1.207 + return security_ops->path_truncate(path); 1.208 + } 1.209 ++EXPORT_SYMBOL(security_path_truncate); 1.210 + 1.211 + int security_path_chmod(struct dentry *dentry, struct vfsmount *mnt, 1.212 + mode_t mode) 1.213 +@@ -423,6 +427,7 @@ int security_path_chmod(struct dentry *dentry, struct vfsmount *mnt, 1.214 + return 0; 1.215 + return security_ops->path_chmod(dentry, mnt, mode); 1.216 + } 1.217 ++EXPORT_SYMBOL(security_path_chmod); 1.218 + 1.219 + int security_path_chown(struct path *path, uid_t uid, gid_t gid) 1.220 + { 1.221 +@@ -430,6 +435,7 @@ int security_path_chown(struct path *path, uid_t uid, gid_t gid) 1.222 + return 0; 1.223 + return security_ops->path_chown(path, uid, gid); 1.224 + } 1.225 ++EXPORT_SYMBOL(security_path_chown); 1.226 + 1.227 + int security_path_chroot(struct path *path) 1.228 + { 1.229 +@@ -506,6 +512,7 @@ int security_inode_readlink(struct dentry *dentry) 1.230 + return 0; 1.231 + return security_ops->inode_readlink(dentry); 1.232 + } 1.233 ++EXPORT_SYMBOL(security_inode_readlink); 1.234 + 1.235 + int security_inode_follow_link(struct dentry *dentry, struct nameidata *nd) 1.236 + { 1.237 +@@ -520,6 +527,7 @@ int security_inode_permission(struct inode *inode, int mask) 1.238 + return 0; 1.239 + return security_ops->inode_permission(inode, mask, 0); 1.240 + } 1.241 ++EXPORT_SYMBOL(security_inode_permission); 1.242 + 1.243 + int security_inode_exec_permission(struct inode *inode, unsigned int flags) 1.244 + { 1.245 +@@ -626,6 +634,7 @@ int security_file_permission(struct file *file, int mask) 1.246 + 1.247 + return fsnotify_perm(file, mask); 1.248 + } 1.249 ++EXPORT_SYMBOL(security_file_permission); 1.250 + 1.251 + int security_file_alloc(struct file *file) 1.252 + { 1.253 +@@ -653,6 +662,7 @@ int security_file_mmap(struct file *file, unsigned long reqprot, 1.254 + return ret; 1.255 + return ima_file_mmap(file, prot); 1.256 + } 1.257 ++EXPORT_SYMBOL(security_file_mmap); 1.258 + 1.259 + int security_file_mprotect(struct vm_area_struct *vma, unsigned long reqprot, 1.260 + unsigned long prot)