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

Up: emacs, emacs-help, emacs-lisp-src (23.2)
author Dominique Corbex <domcox@slitaz.org>
date Sat May 15 20:40:38 2010 +0200 (2010-05-15)
parents
children
rev   line source
pankso@5245 1 aufs2 standalone patch for linux-2.6.33
pankso@5245 2
pankso@5245 3 diff --git a/fs/namei.c b/fs/namei.c
pankso@5245 4 index 1d12d37..7cb8e5d 100644
pankso@5245 5 --- a/fs/namei.c
pankso@5245 6 +++ b/fs/namei.c
pankso@5245 7 @@ -349,6 +349,7 @@ int deny_write_access(struct file * file)
pankso@5245 8
pankso@5245 9 return 0;
pankso@5245 10 }
pankso@5245 11 +EXPORT_SYMBOL(deny_write_access);
pankso@5245 12
pankso@5245 13 /**
pankso@5245 14 * path_get - get a reference to a path
pankso@5245 15 @@ -1216,6 +1217,7 @@ struct dentry *lookup_hash(struct nameidata *nd)
pankso@5245 16 return ERR_PTR(err);
pankso@5245 17 return __lookup_hash(&nd->last, nd->path.dentry, nd);
pankso@5245 18 }
pankso@5245 19 +EXPORT_SYMBOL(lookup_hash);
pankso@5245 20
pankso@5245 21 int __lookup_one_len(const char *name, struct qstr *this,
pankso@5245 22 struct dentry *base, int len)
pankso@5245 23 @@ -1238,6 +1240,7 @@ int __lookup_one_len(const char *name, struct qstr *this,
pankso@5245 24 this->hash = end_name_hash(hash);
pankso@5245 25 return 0;
pankso@5245 26 }
pankso@5245 27 +EXPORT_SYMBOL(__lookup_one_len);
pankso@5245 28
pankso@5245 29 /**
pankso@5245 30 * lookup_one_len - filesystem helper to lookup single pathname component
pankso@5245 31 diff --git a/fs/namespace.c b/fs/namespace.c
pankso@5245 32 index c768f73..0fd78c3 100644
pankso@5245 33 --- a/fs/namespace.c
pankso@5245 34 +++ b/fs/namespace.c
pankso@5245 35 @@ -39,6 +39,7 @@
pankso@5245 36
pankso@5245 37 /* spinlock for vfsmount related operations, inplace of dcache_lock */
pankso@5245 38 __cacheline_aligned_in_smp DEFINE_SPINLOCK(vfsmount_lock);
pankso@5245 39 +EXPORT_SYMBOL(vfsmount_lock);
pankso@5245 40
pankso@5245 41 static int event;
pankso@5245 42 static DEFINE_IDA(mnt_id_ida);
pankso@5245 43 diff --git a/fs/notify/group.c b/fs/notify/group.c
pankso@5245 44 index 0e16771..3fab10a 100644
pankso@5245 45 --- a/fs/notify/group.c
pankso@5245 46 +++ b/fs/notify/group.c
pankso@5245 47 @@ -22,6 +22,7 @@
pankso@5245 48 #include <linux/srcu.h>
pankso@5245 49 #include <linux/rculist.h>
pankso@5245 50 #include <linux/wait.h>
pankso@5245 51 +#include <linux/module.h>
pankso@5245 52
pankso@5245 53 #include <linux/fsnotify_backend.h>
pankso@5245 54 #include "fsnotify.h"
pankso@5245 55 @@ -169,6 +170,7 @@ void fsnotify_put_group(struct fsnotify_group *group)
pankso@5245 56 fsnotify_recalc_global_mask();
pankso@5245 57 fsnotify_destroy_group(group);
pankso@5245 58 }
pankso@5245 59 +EXPORT_SYMBOL(fsnotify_put_group);
pankso@5245 60
pankso@5245 61 /*
pankso@5245 62 * Simply run the fsnotify_groups list and find a group which matches
pankso@5245 63 @@ -252,3 +254,4 @@ struct fsnotify_group *fsnotify_obtain_group(unsigned int group_num, __u32 mask,
pankso@5245 64
pankso@5245 65 return group;
pankso@5245 66 }
pankso@5245 67 +EXPORT_SYMBOL(fsnotify_obtain_group);
pankso@5245 68 diff --git a/fs/notify/inode_mark.c b/fs/notify/inode_mark.c
pankso@5245 69 index 3165d85..4586162 100644
pankso@5245 70 --- a/fs/notify/inode_mark.c
pankso@5245 71 +++ b/fs/notify/inode_mark.c
pankso@5245 72 @@ -106,6 +106,7 @@ void fsnotify_put_mark(struct fsnotify_mark_entry *entry)
pankso@5245 73 if (atomic_dec_and_test(&entry->refcnt))
pankso@5245 74 entry->free_mark(entry);
pankso@5245 75 }
pankso@5245 76 +EXPORT_SYMBOL(fsnotify_put_mark);
pankso@5245 77
pankso@5245 78 /*
pankso@5245 79 * Recalculate the mask of events relevant to a given inode locked.
pankso@5245 80 @@ -216,6 +217,7 @@ void fsnotify_destroy_mark_by_entry(struct fsnotify_mark_entry *entry)
pankso@5245 81 if (unlikely(atomic_dec_and_test(&group->num_marks)))
pankso@5245 82 fsnotify_final_destroy_group(group);
pankso@5245 83 }
pankso@5245 84 +EXPORT_SYMBOL(fsnotify_destroy_mark_by_entry);
pankso@5245 85
pankso@5245 86 /*
pankso@5245 87 * Given a group, destroy all of the marks associated with that group.
pankso@5245 88 @@ -282,6 +284,7 @@ struct fsnotify_mark_entry *fsnotify_find_mark_entry(struct fsnotify_group *grou
pankso@5245 89 }
pankso@5245 90 return NULL;
pankso@5245 91 }
pankso@5245 92 +EXPORT_SYMBOL(fsnotify_find_mark_entry);
pankso@5245 93
pankso@5245 94 /*
pankso@5245 95 * Nothing fancy, just initialize lists and locks and counters.
pankso@5245 96 @@ -298,6 +301,7 @@ void fsnotify_init_mark(struct fsnotify_mark_entry *entry,
pankso@5245 97 entry->inode = NULL;
pankso@5245 98 entry->free_mark = free_mark;
pankso@5245 99 }
pankso@5245 100 +EXPORT_SYMBOL(fsnotify_init_mark);
pankso@5245 101
pankso@5245 102 /*
pankso@5245 103 * Attach an initialized mark entry to a given group and inode.
pankso@5245 104 @@ -353,6 +357,7 @@ int fsnotify_add_mark(struct fsnotify_mark_entry *entry,
pankso@5245 105
pankso@5245 106 return ret;
pankso@5245 107 }
pankso@5245 108 +EXPORT_SYMBOL(fsnotify_add_mark);
pankso@5245 109
pankso@5245 110 /**
pankso@5245 111 * fsnotify_unmount_inodes - an sb is unmounting. handle any watched inodes.
pankso@5245 112 diff --git a/fs/open.c b/fs/open.c
pankso@5245 113 index 040cef7..453b782 100644
pankso@5245 114 --- a/fs/open.c
pankso@5245 115 +++ b/fs/open.c
pankso@5245 116 @@ -226,6 +226,7 @@ int do_truncate(struct dentry *dentry, loff_t length, unsigned int time_attrs,
pankso@5245 117 mutex_unlock(&dentry->d_inode->i_mutex);
pankso@5245 118 return ret;
pankso@5245 119 }
pankso@5245 120 +EXPORT_SYMBOL(do_truncate);
pankso@5245 121
pankso@5245 122 static long do_sys_truncate(const char __user *pathname, loff_t length)
pankso@5245 123 {
pankso@5245 124 diff --git a/fs/splice.c b/fs/splice.c
pankso@5245 125 index b13a9a2..3931ee0 100644
pankso@5245 126 --- a/fs/splice.c
pankso@5245 127 +++ b/fs/splice.c
pankso@5245 128 @@ -1077,6 +1077,7 @@ long do_splice_from(struct pipe_inode_info *pipe, struct file *out,
pankso@5245 129
pankso@5245 130 return splice_write(pipe, out, ppos, len, flags);
pankso@5245 131 }
pankso@5245 132 +EXPORT_SYMBOL(do_splice_from);
pankso@5245 133
pankso@5245 134 /*
pankso@5245 135 * Attempt to initiate a splice from a file to a pipe.
pankso@5245 136 @@ -1103,6 +1104,7 @@ long do_splice_to(struct file *in, loff_t *ppos,
pankso@5245 137
pankso@5245 138 return splice_read(in, ppos, pipe, len, flags);
pankso@5245 139 }
pankso@5245 140 +EXPORT_SYMBOL(do_splice_to);
pankso@5245 141
pankso@5245 142 /**
pankso@5245 143 * splice_direct_to_actor - splices data directly between two non-pipes
pankso@5245 144 diff --git a/security/commoncap.c b/security/commoncap.c
pankso@5245 145 index f800fdb..ea457bc 100644
pankso@5245 146 --- a/security/commoncap.c
pankso@5245 147 +++ b/security/commoncap.c
pankso@5245 148 @@ -946,3 +946,4 @@ int cap_file_mmap(struct file *file, unsigned long reqprot,
pankso@5245 149 }
pankso@5245 150 return ret;
pankso@5245 151 }
pankso@5245 152 +EXPORT_SYMBOL(cap_file_mmap);
pankso@5245 153 diff --git a/security/device_cgroup.c b/security/device_cgroup.c
pankso@5245 154 index 6cf8fd2..008e0d8 100644
pankso@5245 155 --- a/security/device_cgroup.c
pankso@5245 156 +++ b/security/device_cgroup.c
pankso@5245 157 @@ -514,6 +514,7 @@ found:
pankso@5245 158
pankso@5245 159 return -EPERM;
pankso@5245 160 }
pankso@5245 161 +EXPORT_SYMBOL(devcgroup_inode_permission);
pankso@5245 162
pankso@5245 163 int devcgroup_inode_mknod(int mode, dev_t dev)
pankso@5245 164 {
pankso@5245 165 diff --git a/security/security.c b/security/security.c
pankso@5245 166 index 122b748..a4a3d99 100644
pankso@5245 167 --- a/security/security.c
pankso@5245 168 +++ b/security/security.c
pankso@5245 169 @@ -404,6 +404,7 @@ int security_path_mkdir(struct path *path, struct dentry *dentry, int mode)
pankso@5245 170 return 0;
pankso@5245 171 return security_ops->path_mkdir(path, dentry, mode);
pankso@5245 172 }
pankso@5245 173 +EXPORT_SYMBOL(security_path_mkdir);
pankso@5245 174
pankso@5245 175 int security_path_rmdir(struct path *path, struct dentry *dentry)
pankso@5245 176 {
pankso@5245 177 @@ -411,6 +412,7 @@ int security_path_rmdir(struct path *path, struct dentry *dentry)
pankso@5245 178 return 0;
pankso@5245 179 return security_ops->path_rmdir(path, dentry);
pankso@5245 180 }
pankso@5245 181 +EXPORT_SYMBOL(security_path_rmdir);
pankso@5245 182
pankso@5245 183 int security_path_unlink(struct path *path, struct dentry *dentry)
pankso@5245 184 {
pankso@5245 185 @@ -418,6 +420,7 @@ int security_path_unlink(struct path *path, struct dentry *dentry)
pankso@5245 186 return 0;
pankso@5245 187 return security_ops->path_unlink(path, dentry);
pankso@5245 188 }
pankso@5245 189 +EXPORT_SYMBOL(security_path_unlink);
pankso@5245 190
pankso@5245 191 int security_path_symlink(struct path *path, struct dentry *dentry,
pankso@5245 192 const char *old_name)
pankso@5245 193 @@ -426,6 +429,7 @@ int security_path_symlink(struct path *path, struct dentry *dentry,
pankso@5245 194 return 0;
pankso@5245 195 return security_ops->path_symlink(path, dentry, old_name);
pankso@5245 196 }
pankso@5245 197 +EXPORT_SYMBOL(security_path_symlink);
pankso@5245 198
pankso@5245 199 int security_path_link(struct dentry *old_dentry, struct path *new_dir,
pankso@5245 200 struct dentry *new_dentry)
pankso@5245 201 @@ -434,6 +438,7 @@ int security_path_link(struct dentry *old_dentry, struct path *new_dir,
pankso@5245 202 return 0;
pankso@5245 203 return security_ops->path_link(old_dentry, new_dir, new_dentry);
pankso@5245 204 }
pankso@5245 205 +EXPORT_SYMBOL(security_path_link);
pankso@5245 206
pankso@5245 207 int security_path_rename(struct path *old_dir, struct dentry *old_dentry,
pankso@5245 208 struct path *new_dir, struct dentry *new_dentry)
pankso@5245 209 @@ -444,6 +449,7 @@ int security_path_rename(struct path *old_dir, struct dentry *old_dentry,
pankso@5245 210 return security_ops->path_rename(old_dir, old_dentry, new_dir,
pankso@5245 211 new_dentry);
pankso@5245 212 }
pankso@5245 213 +EXPORT_SYMBOL(security_path_rename);
pankso@5245 214
pankso@5245 215 int security_path_truncate(struct path *path, loff_t length,
pankso@5245 216 unsigned int time_attrs)
pankso@5245 217 @@ -452,6 +458,7 @@ int security_path_truncate(struct path *path, loff_t length,
pankso@5245 218 return 0;
pankso@5245 219 return security_ops->path_truncate(path, length, time_attrs);
pankso@5245 220 }
pankso@5245 221 +EXPORT_SYMBOL(security_path_truncate);
pankso@5245 222
pankso@5245 223 int security_path_chmod(struct dentry *dentry, struct vfsmount *mnt,
pankso@5245 224 mode_t mode)
pankso@5245 225 @@ -460,6 +467,7 @@ int security_path_chmod(struct dentry *dentry, struct vfsmount *mnt,
pankso@5245 226 return 0;
pankso@5245 227 return security_ops->path_chmod(dentry, mnt, mode);
pankso@5245 228 }
pankso@5245 229 +EXPORT_SYMBOL(security_path_chmod);
pankso@5245 230
pankso@5245 231 int security_path_chown(struct path *path, uid_t uid, gid_t gid)
pankso@5245 232 {
pankso@5245 233 @@ -467,6 +475,7 @@ int security_path_chown(struct path *path, uid_t uid, gid_t gid)
pankso@5245 234 return 0;
pankso@5245 235 return security_ops->path_chown(path, uid, gid);
pankso@5245 236 }
pankso@5245 237 +EXPORT_SYMBOL(security_path_chown);
pankso@5245 238
pankso@5245 239 int security_path_chroot(struct path *path)
pankso@5245 240 {
pankso@5245 241 @@ -543,6 +552,7 @@ int security_inode_readlink(struct dentry *dentry)
pankso@5245 242 return 0;
pankso@5245 243 return security_ops->inode_readlink(dentry);
pankso@5245 244 }
pankso@5245 245 +EXPORT_SYMBOL(security_inode_readlink);
pankso@5245 246
pankso@5245 247 int security_inode_follow_link(struct dentry *dentry, struct nameidata *nd)
pankso@5245 248 {
pankso@5245 249 @@ -557,6 +567,7 @@ int security_inode_permission(struct inode *inode, int mask)
pankso@5245 250 return 0;
pankso@5245 251 return security_ops->inode_permission(inode, mask);
pankso@5245 252 }
pankso@5245 253 +EXPORT_SYMBOL(security_inode_permission);
pankso@5245 254
pankso@5245 255 int security_inode_setattr(struct dentry *dentry, struct iattr *attr)
pankso@5245 256 {
pankso@5245 257 @@ -657,6 +668,7 @@ int security_file_permission(struct file *file, int mask)
pankso@5245 258 {
pankso@5245 259 return security_ops->file_permission(file, mask);
pankso@5245 260 }
pankso@5245 261 +EXPORT_SYMBOL(security_file_permission);
pankso@5245 262
pankso@5245 263 int security_file_alloc(struct file *file)
pankso@5245 264 {
pankso@5245 265 @@ -684,6 +696,7 @@ int security_file_mmap(struct file *file, unsigned long reqprot,
pankso@5245 266 return ret;
pankso@5245 267 return ima_file_mmap(file, prot);
pankso@5245 268 }
pankso@5245 269 +EXPORT_SYMBOL(security_file_mmap);
pankso@5245 270
pankso@5245 271 int security_file_mprotect(struct vm_area_struct *vma, unsigned long reqprot,
pankso@5245 272 unsigned long prot)