wok annotate linux/stuff/aufs2-standalone.patch @ rev 10752

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