wok annotate linux/stuff/aufs3-standalone.patch @ rev 25000

updated nms (0.3.3 -> 1.0.1)
author Hans-G?nter Theisgen
date Mon May 16 13:53:18 2022 +0100 (2022-05-16)
parents
children
rev   line source
pascal@24141 1 aufs3.16 standalone patch
pascal@24141 2
pascal@24141 3 diff --git a/fs/dcache.c b/fs/dcache.c
pascal@24141 4 index 0ea8c4a..2c22125 100644
pascal@24141 5 --- a/fs/dcache.c
pascal@24141 6 +++ b/fs/dcache.c
pascal@24141 7 @@ -1161,6 +1161,7 @@ rename_retry:
pascal@24141 8 seq = 1;
pascal@24141 9 goto again;
pascal@24141 10 }
pascal@24141 11 +EXPORT_SYMBOL(d_walk);
pascal@24141 12
pascal@24141 13 /*
pascal@24141 14 * Search for at least 1 mount point in the dentry's subdirs.
pascal@24141 15 diff --git a/fs/file_table.c b/fs/file_table.c
pascal@24141 16 index 385bfd3..7d4ee57 100644
pascal@24141 17 --- a/fs/file_table.c
pascal@24141 18 +++ b/fs/file_table.c
pascal@24141 19 @@ -147,6 +147,7 @@ over:
pascal@24141 20 }
pascal@24141 21 return ERR_PTR(-ENFILE);
pascal@24141 22 }
pascal@24141 23 +EXPORT_SYMBOL(get_empty_filp);
pascal@24141 24
pascal@24141 25 /**
pascal@24141 26 * alloc_file - allocate and initialize a 'struct file'
pascal@24141 27 @@ -316,6 +317,7 @@ void put_filp(struct file *file)
pascal@24141 28 file_free(file);
pascal@24141 29 }
pascal@24141 30 }
pascal@24141 31 +EXPORT_SYMBOL(put_filp);
pascal@24141 32
pascal@24141 33 void __init files_init(unsigned long mempages)
pascal@24141 34 {
pascal@24141 35 diff --git a/fs/inode.c b/fs/inode.c
pascal@24141 36 index b225c0f..73259c8 100644
pascal@24141 37 --- a/fs/inode.c
pascal@24141 38 +++ b/fs/inode.c
pascal@24141 39 @@ -57,6 +57,7 @@ static struct hlist_head *inode_hashtable __read_mostly;
pascal@24141 40 static __cacheline_aligned_in_smp DEFINE_SPINLOCK(inode_hash_lock);
pascal@24141 41
pascal@24141 42 __cacheline_aligned_in_smp DEFINE_SPINLOCK(inode_sb_list_lock);
pascal@24141 43 +EXPORT_SYMBOL(inode_sb_list_lock);
pascal@24141 44
pascal@24141 45 /*
pascal@24141 46 * Empty aops. Can be used for the cases where the user does not
pascal@24141 47 @@ -1512,6 +1513,7 @@ int update_time(struct inode *inode, struct timespec *time, int flags)
pascal@24141 48 mark_inode_dirty_sync(inode);
pascal@24141 49 return 0;
pascal@24141 50 }
pascal@24141 51 +EXPORT_SYMBOL(update_time);
pascal@24141 52
pascal@24141 53 /**
pascal@24141 54 * touch_atime - update the access time
pascal@24141 55 diff --git a/fs/namespace.c b/fs/namespace.c
pascal@24141 56 index 182bc41..c88e101 100644
pascal@24141 57 --- a/fs/namespace.c
pascal@24141 58 +++ b/fs/namespace.c
pascal@24141 59 @@ -453,6 +453,7 @@ void __mnt_drop_write(struct vfsmount *mnt)
pascal@24141 60 mnt_dec_writers(real_mount(mnt));
pascal@24141 61 preempt_enable();
pascal@24141 62 }
pascal@24141 63 +EXPORT_SYMBOL_GPL(__mnt_drop_write);
pascal@24141 64
pascal@24141 65 /**
pascal@24141 66 * mnt_drop_write - give up write access to a mount
pascal@24141 67 @@ -1564,6 +1565,7 @@ int iterate_mounts(int (*f)(struct vfsmount *, void *), void *arg,
pascal@24141 68 }
pascal@24141 69 return 0;
pascal@24141 70 }
pascal@24141 71 +EXPORT_SYMBOL(iterate_mounts);
pascal@24141 72
pascal@24141 73 static void cleanup_group_ids(struct mount *mnt, struct mount *end)
pascal@24141 74 {
pascal@24141 75 diff --git a/fs/notify/group.c b/fs/notify/group.c
pascal@24141 76 index ad19959..adf290d 100644
pascal@24141 77 --- a/fs/notify/group.c
pascal@24141 78 +++ b/fs/notify/group.c
pascal@24141 79 @@ -22,6 +22,7 @@
pascal@24141 80 #include <linux/srcu.h>
pascal@24141 81 #include <linux/rculist.h>
pascal@24141 82 #include <linux/wait.h>
pascal@24141 83 +#include <linux/module.h>
pascal@24141 84
pascal@24141 85 #include <linux/fsnotify_backend.h>
pascal@24141 86 #include "fsnotify.h"
pascal@24141 87 @@ -72,6 +73,7 @@ void fsnotify_get_group(struct fsnotify_group *group)
pascal@24141 88 {
pascal@24141 89 atomic_inc(&group->refcnt);
pascal@24141 90 }
pascal@24141 91 +EXPORT_SYMBOL(fsnotify_get_group);
pascal@24141 92
pascal@24141 93 /*
pascal@24141 94 * Drop a reference to a group. Free it if it's through.
pascal@24141 95 @@ -81,6 +83,7 @@ void fsnotify_put_group(struct fsnotify_group *group)
pascal@24141 96 if (atomic_dec_and_test(&group->refcnt))
pascal@24141 97 fsnotify_final_destroy_group(group);
pascal@24141 98 }
pascal@24141 99 +EXPORT_SYMBOL(fsnotify_put_group);
pascal@24141 100
pascal@24141 101 /*
pascal@24141 102 * Create a new fsnotify_group and hold a reference for the group returned.
pascal@24141 103 @@ -109,6 +112,7 @@ struct fsnotify_group *fsnotify_alloc_group(const struct fsnotify_ops *ops)
pascal@24141 104
pascal@24141 105 return group;
pascal@24141 106 }
pascal@24141 107 +EXPORT_SYMBOL(fsnotify_alloc_group);
pascal@24141 108
pascal@24141 109 int fsnotify_fasync(int fd, struct file *file, int on)
pascal@24141 110 {
pascal@24141 111 diff --git a/fs/notify/mark.c b/fs/notify/mark.c
pascal@24141 112 index d90deaa..60b4239 100644
pascal@24141 113 --- a/fs/notify/mark.c
pascal@24141 114 +++ b/fs/notify/mark.c
pascal@24141 115 @@ -109,6 +109,7 @@ void fsnotify_put_mark(struct fsnotify_mark *mark)
pascal@24141 116 mark->free_mark(mark);
pascal@24141 117 }
pascal@24141 118 }
pascal@24141 119 +EXPORT_SYMBOL(fsnotify_put_mark);
pascal@24141 120
pascal@24141 121 /*
pascal@24141 122 * Any time a mark is getting freed we end up here.
pascal@24141 123 @@ -191,6 +192,7 @@ void fsnotify_destroy_mark(struct fsnotify_mark *mark,
pascal@24141 124 fsnotify_destroy_mark_locked(mark, group);
pascal@24141 125 mutex_unlock(&group->mark_mutex);
pascal@24141 126 }
pascal@24141 127 +EXPORT_SYMBOL(fsnotify_destroy_mark);
pascal@24141 128
pascal@24141 129 void fsnotify_set_mark_mask_locked(struct fsnotify_mark *mark, __u32 mask)
pascal@24141 130 {
pascal@24141 131 @@ -275,6 +277,7 @@ err:
pascal@24141 132
pascal@24141 133 return ret;
pascal@24141 134 }
pascal@24141 135 +EXPORT_SYMBOL(fsnotify_add_mark);
pascal@24141 136
pascal@24141 137 int fsnotify_add_mark(struct fsnotify_mark *mark, struct fsnotify_group *group,
pascal@24141 138 struct inode *inode, struct vfsmount *mnt, int allow_dups)
pascal@24141 139 @@ -336,6 +339,7 @@ void fsnotify_init_mark(struct fsnotify_mark *mark,
pascal@24141 140 atomic_set(&mark->refcnt, 1);
pascal@24141 141 mark->free_mark = free_mark;
pascal@24141 142 }
pascal@24141 143 +EXPORT_SYMBOL(fsnotify_init_mark);
pascal@24141 144
pascal@24141 145 static int fsnotify_mark_destroy(void *ignored)
pascal@24141 146 {
pascal@24141 147 diff --git a/fs/open.c b/fs/open.c
pascal@24141 148 index d6fd3ac..5224633c 100644
pascal@24141 149 --- a/fs/open.c
pascal@24141 150 +++ b/fs/open.c
pascal@24141 151 @@ -62,6 +62,7 @@ int do_truncate(struct dentry *dentry, loff_t length, unsigned int time_attrs,
pascal@24141 152 mutex_unlock(&dentry->d_inode->i_mutex);
pascal@24141 153 return ret;
pascal@24141 154 }
pascal@24141 155 +EXPORT_SYMBOL(do_truncate);
pascal@24141 156
pascal@24141 157 long vfs_truncate(struct path *path, loff_t length)
pascal@24141 158 {
pascal@24141 159 @@ -298,6 +299,7 @@ int do_fallocate(struct file *file, int mode, loff_t offset, loff_t len)
pascal@24141 160 sb_end_write(inode->i_sb);
pascal@24141 161 return ret;
pascal@24141 162 }
pascal@24141 163 +EXPORT_SYMBOL(do_fallocate);
pascal@24141 164
pascal@24141 165 SYSCALL_DEFINE4(fallocate, int, fd, int, mode, loff_t, offset, loff_t, len)
pascal@24141 166 {
pascal@24141 167 @@ -663,6 +665,7 @@ int open_check_o_direct(struct file *f)
pascal@24141 168 }
pascal@24141 169 return 0;
pascal@24141 170 }
pascal@24141 171 +EXPORT_SYMBOL(open_check_o_direct);
pascal@24141 172
pascal@24141 173 static int do_dentry_open(struct file *f,
pascal@24141 174 int (*open)(struct inode *, struct file *),
pascal@24141 175 diff --git a/fs/splice.c b/fs/splice.c
pascal@24141 176 index 9ba380c..3419932 100644
pascal@24141 177 --- a/fs/splice.c
pascal@24141 178 +++ b/fs/splice.c
pascal@24141 179 @@ -1127,6 +1127,7 @@ long do_splice_from(struct pipe_inode_info *pipe, struct file *out,
pascal@24141 180
pascal@24141 181 return splice_write(pipe, out, ppos, len, flags);
pascal@24141 182 }
pascal@24141 183 +EXPORT_SYMBOL(do_splice_from);
pascal@24141 184
pascal@24141 185 /*
pascal@24141 186 * Attempt to initiate a splice from a file to a pipe.
pascal@24141 187 @@ -1153,6 +1154,7 @@ long do_splice_to(struct file *in, loff_t *ppos,
pascal@24141 188
pascal@24141 189 return splice_read(in, ppos, pipe, len, flags);
pascal@24141 190 }
pascal@24141 191 +EXPORT_SYMBOL(do_splice_to);
pascal@24141 192
pascal@24141 193 /**
pascal@24141 194 * splice_direct_to_actor - splices data directly between two non-pipes
pascal@24141 195 diff --git a/fs/xattr.c b/fs/xattr.c
pascal@24141 196 index c69e6d4..3a7a8eb 100644
pascal@24141 197 --- a/fs/xattr.c
pascal@24141 198 +++ b/fs/xattr.c
pascal@24141 199 @@ -207,6 +207,7 @@ vfs_getxattr_alloc(struct dentry *dentry, const char *name, char **xattr_value,
pascal@24141 200 *xattr_value = value;
pascal@24141 201 return error;
pascal@24141 202 }
pascal@24141 203 +EXPORT_SYMBOL(vfs_getxattr_alloc);
pascal@24141 204
pascal@24141 205 /* Compare an extended attribute value with the given value */
pascal@24141 206 int vfs_xattr_cmp(struct dentry *dentry, const char *xattr_name,
pascal@24141 207 diff --git a/security/commoncap.c b/security/commoncap.c
pascal@24141 208 index b9d613e..ba3b618 100644
pascal@24141 209 --- a/security/commoncap.c
pascal@24141 210 +++ b/security/commoncap.c
pascal@24141 211 @@ -988,9 +988,11 @@ int cap_mmap_addr(unsigned long addr)
pascal@24141 212 }
pascal@24141 213 return ret;
pascal@24141 214 }
pascal@24141 215 +EXPORT_SYMBOL(cap_mmap_addr);
pascal@24141 216
pascal@24141 217 int cap_mmap_file(struct file *file, unsigned long reqprot,
pascal@24141 218 unsigned long prot, unsigned long flags)
pascal@24141 219 {
pascal@24141 220 return 0;
pascal@24141 221 }
pascal@24141 222 +EXPORT_SYMBOL(cap_mmap_file);
pascal@24141 223 diff --git a/security/device_cgroup.c b/security/device_cgroup.c
pascal@24141 224 index d9d69e6..3f6f471 100644
pascal@24141 225 --- a/security/device_cgroup.c
pascal@24141 226 +++ b/security/device_cgroup.c
pascal@24141 227 @@ -7,6 +7,7 @@
pascal@24141 228 #include <linux/device_cgroup.h>
pascal@24141 229 #include <linux/cgroup.h>
pascal@24141 230 #include <linux/ctype.h>
pascal@24141 231 +#include <linux/export.h>
pascal@24141 232 #include <linux/list.h>
pascal@24141 233 #include <linux/uaccess.h>
pascal@24141 234 #include <linux/seq_file.h>
pascal@24141 235 @@ -849,6 +850,7 @@ int __devcgroup_inode_permission(struct inode *inode, int mask)
pascal@24141 236 return __devcgroup_check_permission(type, imajor(inode), iminor(inode),
pascal@24141 237 access);
pascal@24141 238 }
pascal@24141 239 +EXPORT_SYMBOL(__devcgroup_inode_permission);
pascal@24141 240
pascal@24141 241 int devcgroup_inode_mknod(int mode, dev_t dev)
pascal@24141 242 {
pascal@24141 243 diff --git a/security/security.c b/security/security.c
pascal@24141 244 index 31614e9..b223a66 100644
pascal@24141 245 --- a/security/security.c
pascal@24141 246 +++ b/security/security.c
pascal@24141 247 @@ -407,6 +407,7 @@ int security_path_rmdir(struct path *dir, struct dentry *dentry)
pascal@24141 248 return 0;
pascal@24141 249 return security_ops->path_rmdir(dir, dentry);
pascal@24141 250 }
pascal@24141 251 +EXPORT_SYMBOL(security_path_rmdir);
pascal@24141 252
pascal@24141 253 int security_path_unlink(struct path *dir, struct dentry *dentry)
pascal@24141 254 {
pascal@24141 255 @@ -423,6 +424,7 @@ int security_path_symlink(struct path *dir, struct dentry *dentry,
pascal@24141 256 return 0;
pascal@24141 257 return security_ops->path_symlink(dir, dentry, old_name);
pascal@24141 258 }
pascal@24141 259 +EXPORT_SYMBOL(security_path_symlink);
pascal@24141 260
pascal@24141 261 int security_path_link(struct dentry *old_dentry, struct path *new_dir,
pascal@24141 262 struct dentry *new_dentry)
pascal@24141 263 @@ -431,6 +433,7 @@ int security_path_link(struct dentry *old_dentry, struct path *new_dir,
pascal@24141 264 return 0;
pascal@24141 265 return security_ops->path_link(old_dentry, new_dir, new_dentry);
pascal@24141 266 }
pascal@24141 267 +EXPORT_SYMBOL(security_path_link);
pascal@24141 268
pascal@24141 269 int security_path_rename(struct path *old_dir, struct dentry *old_dentry,
pascal@24141 270 struct path *new_dir, struct dentry *new_dentry,
pascal@24141 271 @@ -458,6 +461,7 @@ int security_path_truncate(struct path *path)
pascal@24141 272 return 0;
pascal@24141 273 return security_ops->path_truncate(path);
pascal@24141 274 }
pascal@24141 275 +EXPORT_SYMBOL(security_path_truncate);
pascal@24141 276
pascal@24141 277 int security_path_chmod(struct path *path, umode_t mode)
pascal@24141 278 {
pascal@24141 279 @@ -465,6 +469,7 @@ int security_path_chmod(struct path *path, umode_t mode)
pascal@24141 280 return 0;
pascal@24141 281 return security_ops->path_chmod(path, mode);
pascal@24141 282 }
pascal@24141 283 +EXPORT_SYMBOL(security_path_chmod);
pascal@24141 284
pascal@24141 285 int security_path_chown(struct path *path, kuid_t uid, kgid_t gid)
pascal@24141 286 {
pascal@24141 287 @@ -472,6 +477,7 @@ int security_path_chown(struct path *path, kuid_t uid, kgid_t gid)
pascal@24141 288 return 0;
pascal@24141 289 return security_ops->path_chown(path, uid, gid);
pascal@24141 290 }
pascal@24141 291 +EXPORT_SYMBOL(security_path_chown);
pascal@24141 292
pascal@24141 293 int security_path_chroot(struct path *path)
pascal@24141 294 {
pascal@24141 295 @@ -557,6 +563,7 @@ int security_inode_readlink(struct dentry *dentry)
pascal@24141 296 return 0;
pascal@24141 297 return security_ops->inode_readlink(dentry);
pascal@24141 298 }
pascal@24141 299 +EXPORT_SYMBOL(security_inode_readlink);
pascal@24141 300
pascal@24141 301 int security_inode_follow_link(struct dentry *dentry, struct nameidata *nd)
pascal@24141 302 {
pascal@24141 303 @@ -571,6 +578,7 @@ int security_inode_permission(struct inode *inode, int mask)
pascal@24141 304 return 0;
pascal@24141 305 return security_ops->inode_permission(inode, mask);
pascal@24141 306 }
pascal@24141 307 +EXPORT_SYMBOL(security_inode_permission);
pascal@24141 308
pascal@24141 309 int security_inode_setattr(struct dentry *dentry, struct iattr *attr)
pascal@24141 310 {
pascal@24141 311 @@ -693,6 +701,7 @@ int security_file_permission(struct file *file, int mask)
pascal@24141 312
pascal@24141 313 return fsnotify_perm(file, mask);
pascal@24141 314 }
pascal@24141 315 +EXPORT_SYMBOL(security_file_permission);
pascal@24141 316
pascal@24141 317 int security_file_alloc(struct file *file)
pascal@24141 318 {
pascal@24141 319 @@ -753,6 +762,7 @@ int security_mmap_file(struct file *file, unsigned long prot,
pascal@24141 320 return ret;
pascal@24141 321 return ima_file_mmap(file, prot);
pascal@24141 322 }
pascal@24141 323 +EXPORT_SYMBOL(security_mmap_file);
pascal@24141 324
pascal@24141 325 int security_mmap_addr(unsigned long addr)
pascal@24141 326 {