Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Aufs5 Standalone
Commits
71aa8fd6
Commit
71aa8fd6
authored
Apr 07, 2020
by
J. R. Okajima
Browse files
5.x-rcN 20200413
Signed-off-by:
J. R. Okajima
<
hooanon05g@gmail.com
>
parent
351efcf4
Changes
7
Hide whitespace changes
Inline
Side-by-side
aufs5-base.patch
View file @
71aa8fd6
...
...
@@ -2,7 +2,7 @@ SPDX-License-Identifier: GPL-2.0
aufs5.x-rcN base patch
diff --git a/MAINTAINERS b/MAINTAINERS
index
fcd79fc38928..9751b7b48696
100644
index
5a5332b3591d..51301c0ab275
100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -2919,6 +2919,19 @@
F: include/linux/audit.h
...
...
@@ -68,7 +68,7 @@ index b280e07e162b..046000653e4d 100644
{
struct dentry *this_parent;
diff --git a/fs/fcntl.c b/fs/fcntl.c
index
9bc167562ee8..b0935c67bd1e
100644
index
2e4c0fa2074b..0b28a37f7e50
100644
--- a/fs/fcntl.c
+++ b/fs/fcntl.c
@@ -32,7 +32,7 @@
...
...
@@ -90,10 +90,10 @@ index 9bc167562ee8..b0935c67bd1e 100644
return error;
diff --git a/fs/inode.c b/fs/inode.c
index
7d57068b6b7a..c5a5578773d4
100644
index
93d9252a00ab..7700c5e4783b
100644
--- a/fs/inode.c
+++ b/fs/inode.c
@@ -168
7
,7 +168
7
,7 @@
EXPORT_SYMBOL(generic_update_time);
@@ -168
8
,7 +168
8
,7 @@
EXPORT_SYMBOL(generic_update_time);
* This does the actual work of updating an inodes time or version. Must have
* had called mnt_want_write() before calling this.
*/
...
...
@@ -194,10 +194,10 @@ index 4d1ff010bc5a..457f4e4a5cc1 100644
if (wait)
sync_inodes_sb(sb);
diff --git a/include/linux/fs.h b/include/linux/fs.h
index
3cd4fe6b845e..6d1e37a014f3
100644
index
abedbffe2c9e..944485ac54b4
100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -13
49
,6 +13
49
,7 @@
extern void fasync_free(struct fasync_struct *);
@@ -13
50
,6 +13
50
,7 @@
extern void fasync_free(struct fasync_struct *);
/* can be called from interrupts */
extern void kill_fasync(struct fasync_struct **, int, int);
...
...
@@ -205,7 +205,7 @@ index 3cd4fe6b845e..6d1e37a014f3 100644
extern void __f_setown(struct file *filp, struct pid *, enum pid_type, int force);
extern int f_setown(struct file *filp, unsigned long arg, int force);
extern void f_delown(struct file *filp);
@@ -184
1
,6 +184
2
,7 @@
struct file_operations {
@@ -184
2
,6 +184
3
,7 @@
struct file_operations {
ssize_t (*sendpage) (struct file *, struct page *, int, size_t, loff_t *, int);
unsigned long (*get_unmapped_area)(struct file *, unsigned long, unsigned long, unsigned long, unsigned long);
int (*check_flags)(int);
...
...
@@ -213,7 +213,7 @@ index 3cd4fe6b845e..6d1e37a014f3 100644
int (*flock) (struct file *, int, struct file_lock *);
ssize_t (*splice_write)(struct pipe_inode_info *, struct file *, loff_t *, size_t, unsigned int);
ssize_t (*splice_read)(struct file *, loff_t *, struct pipe_inode_info *, size_t, unsigned int);
@@ -191
1
,6 +191
3
,12 @@
ssize_t rw_copy_check_uvector(int type, const struct iovec __user * uvector,
@@ -191
2
,6 +191
4
,12 @@
ssize_t rw_copy_check_uvector(int type, const struct iovec __user * uvector,
struct iovec *fast_pointer,
struct iovec **ret_pointer);
...
...
@@ -226,7 +226,7 @@ index 3cd4fe6b845e..6d1e37a014f3 100644
extern ssize_t __vfs_read(struct file *, char __user *, size_t, loff_t *);
extern ssize_t vfs_read(struct file *, char __user *, size_t, loff_t *);
extern ssize_t vfs_write(struct file *, const char __user *, size_t, loff_t *);
@@ -234
3
,6 +235
1
,7 @@
extern int current_umask(void);
@@ -234
4
,6 +235
2
,7 @@
extern int current_umask(void);
extern void ihold(struct inode * inode);
extern void iput(struct inode *);
extern int generic_update_time(struct inode *, struct timespec64 *, int);
...
...
@@ -234,7 +234,7 @@ index 3cd4fe6b845e..6d1e37a014f3 100644
/* /sys/fs */
extern struct kobject *fs_kobj;
@@ -262
7
,6 +263
6
,7 @@
static inline bool sb_is_blkdev_sb(struct super_block *sb)
@@ -262
8
,6 +263
7
,7 @@
static inline bool sb_is_blkdev_sb(struct super_block *sb)
return false;
}
#endif
...
...
aufs5-loopback.patch
View file @
71aa8fd6
...
...
@@ -228,10 +228,10 @@ index 589dd0122020..801e0a7faec5 100644
/* ---------------------------------------------------------------------- */
diff --git a/include/linux/fs.h b/include/linux/fs.h
index
6d1e37a014f3..ce2c9b4bae13
100644
index
944485ac54b4..eccc62765e95
100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -19
79
,6 +19
79
,10 @@
struct super_operations {
@@ -19
80
,6 +19
80
,10 @@
struct super_operations {
struct shrink_control *);
long (*free_cached_objects)(struct super_block *,
struct shrink_control *);
...
...
aufs5-mmap.patch
View file @
71aa8fd6
...
...
@@ -72,7 +72,7 @@ index 7907e6419e57..d17209cf52bc 100644
ino = inode->i_ino;
pgoff = (loff_t)vma->vm_pgoff << PAGE_SHIFT;
diff --git a/include/linux/mm.h b/include/linux/mm.h
index
52269e56c514..32aa6b1ea1d2
100644
index
c54fb96cb1e6..393304f0526d
100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -1487,6 +1487,28 @@
static inline void unmap_shared_mapping_range(struct address_space *mapping,
...
...
@@ -125,7 +125,7 @@ index c28911c3afa8..23d069c0e171 100644
#ifdef CONFIG_SWAP
diff --git a/kernel/fork.c b/kernel/fork.c
index
60a1295f4384..44682dd97ca6
100644
index
d90af13431c7..01316a9e226f
100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -565,7 +565,7 @@
static __latent_entropy int dup_mmap(struct mm_struct *mm,
...
...
@@ -261,10 +261,10 @@ index d681a20eb4ea..36c80ae89cee 100644
new_vma->vm_ops->open(new_vma);
vma_link(mm, new_vma, prev, rb_link, rb_parent);
diff --git a/mm/nommu.c b/mm/nommu.c
index
bd2b4e5ef144..acdab5253263
100644
index
318df4e236c9..7f051e86ea1d
100644
--- a/mm/nommu.c
+++ b/mm/nommu.c
@@ -56
3
,7 +56
3
,7 @@
static void __put_nommu_region(struct vm_region *region)
@@ -56
7
,7 +56
7
,7 @@
static void __put_nommu_region(struct vm_region *region)
up_write(&nommu_region_sem);
if (region->vm_file)
...
...
@@ -273,7 +273,7 @@ index bd2b4e5ef144..acdab5253263 100644
/* IO memory and memory shared directly out of the pagecache
* from ramfs/tmpfs mustn't be released here */
@@ -69
5
,7 +69
5
,7 @@
static void delete_vma(struct mm_struct *mm, struct vm_area_struct *vma)
@@ -69
9
,7 +69
9
,7 @@
static void delete_vma(struct mm_struct *mm, struct vm_area_struct *vma)
if (vma->vm_ops && vma->vm_ops->close)
vma->vm_ops->close(vma);
if (vma->vm_file)
...
...
@@ -282,7 +282,7 @@ index bd2b4e5ef144..acdab5253263 100644
put_nommu_region(vma->vm_region);
vm_area_free(vma);
}
@@ -12
18
,7 +12
18
,7 @@
unsigned long do_mmap(struct file *file,
@@ -12
22
,7 +12
22
,7 @@
unsigned long do_mmap(struct file *file,
goto error_just_free;
}
}
...
...
@@ -291,7 +291,7 @@ index bd2b4e5ef144..acdab5253263 100644
kmem_cache_free(vm_region_jar, region);
region = pregion;
result = start;
@@ -129
5
,10 +129
5
,10 @@
unsigned long do_mmap(struct file *file,
@@ -129
9
,10 +129
9
,10 @@
unsigned long do_mmap(struct file *file,
up_write(&nommu_region_sem);
error:
if (region->vm_file)
...
...
aufs5-standalone.patch
View file @
71aa8fd6
...
...
@@ -34,7 +34,7 @@ index db17be51b112..4bb61917a29a 100644
#ifdef CONFIG_USELIB
/*
diff --git a/fs/fcntl.c b/fs/fcntl.c
index
b0935c67bd1e..07251ba86c31
100644
index
0b28a37f7e50..f2c90a416b75
100644
--- a/fs/fcntl.c
+++ b/fs/fcntl.c
@@ -85,6 +85,7 @@
int setfl(int fd, struct file *filp, unsigned long arg)
...
...
@@ -66,10 +66,10 @@ index 30d55c9a1744..34b9bbf4c556 100644
void __init files_init(void)
{
diff --git a/fs/inode.c b/fs/inode.c
index
c5a5578773d4..5995e737f64a
100644
index
7700c5e4783b..6284b41fcf3f
100644
--- a/fs/inode.c
+++ b/fs/inode.c
@@ -169
3
,6 +169
3
,7 @@
int update_time(struct inode *inode, struct timespec64 *time, int flags)
@@ -169
4
,6 +169
4
,7 @@
int update_time(struct inode *inode, struct timespec64 *time, int flags)
return inode->i_op->update_time(inode, time, flags);
return generic_update_time(inode, time, flags);
}
...
...
@@ -118,7 +118,7 @@ index 133f723aca07..0b9f7f6d8390 100644
/*
* Drop a reference to a group. Free it if it's through.
diff --git a/fs/open.c b/fs/open.c
index
0788b3715731..cec8ceac6f16
100644
index
b69d6eed67e6..cb777a1888f7
100644
--- a/fs/open.c
+++ b/fs/open.c
@@ -65,6 +65,7 @@
int do_truncate(struct dentry *dentry, loff_t length, unsigned int time_attrs,
...
...
include/uapi/linux/aufs_type.h
View file @
71aa8fd6
...
...
@@ -40,7 +40,7 @@
#include <limits.h>
#endif
/* __KERNEL__ */
#define AUFS_VERSION "5.x-rcN-20200
302
"
#define AUFS_VERSION "5.x-rcN-20200
413
"
/* todo? move this to linux-2.6.19/include/magic.h */
#define AUFS_SUPER_MAGIC ('a' << 24 | 'u' << 16 | 'f' << 8 | 's')
...
...
tmpfs-idr.patch
View file @
71aa8fd6
...
...
@@ -21,7 +21,7 @@ index d56fefef8905..a02150911167 100644
umode_t mode; /* Mount mode for root directory */
unsigned char huge; /* Whether to try for hugepages */
diff --git a/mm/shmem.c b/mm/shmem.c
index
c8f7540ef048..f001b83ad1c3
100644
index
aad3ba74b0e9..b03afb79fa59
100644
--- a/mm/shmem.c
+++ b/mm/shmem.c
@@ -110,7 +110,7 @@
struct shmem_falloc {
...
...
@@ -165,7 +165,7 @@ index c8f7540ef048..f001b83ad1c3 100644
return 1;
}
@@ -343
7
,7 +344
5
,7 @@
static int shmem_parse_one(struct fs_context *fc, struct fs_parameter *param)
@@ -343
5
,7 +344
3
,7 @@
static int shmem_parse_one(struct fs_context *fc, struct fs_parameter *param)
break;
case Opt_nr_inodes:
ctx->inodes = memparse(param->string, &rest);
...
...
@@ -174,7 +174,7 @@ index c8f7540ef048..f001b83ad1c3 100644
goto bad_value;
ctx->seen |= SHMEM_SEEN_INODES;
break;
@@ -353
5
,7 +354
3
,7 @@
static int shmem_reconfigure(struct fs_context *fc)
@@ -353
3
,7 +354
1
,7 @@
static int shmem_reconfigure(struct fs_context *fc)
{
struct shmem_options *ctx = fc->fs_private;
struct shmem_sb_info *sbinfo = SHMEM_SB(fc->root->d_sb);
...
...
@@ -183,7 +183,7 @@ index c8f7540ef048..f001b83ad1c3 100644
const char *err;
spin_lock(&sbinfo->stat_lock);
@@ -359
4
,7 +360
2
,7 @@
static int shmem_show_options(struct seq_file *seq, struct dentry *root)
@@ -359
2
,7 +360
0
,7 @@
static int shmem_show_options(struct seq_file *seq, struct dentry *root)
seq_printf(seq, ",size=%luk",
sbinfo->max_blocks << (PAGE_SHIFT - 10));
if (sbinfo->max_inodes != shmem_default_max_inodes())
...
...
@@ -192,7 +192,7 @@ index c8f7540ef048..f001b83ad1c3 100644
if (sbinfo->mode != (0777 | S_ISVTX))
seq_printf(seq, ",mode=%03ho", sbinfo->mode);
if (!uid_eq(sbinfo->uid, GLOBAL_ROOT_UID))
@@ -361
8
,6 +362
6
,8 @@
static void shmem_put_super(struct super_block *sb)
@@ -361
6
,6 +362
4
,8 @@
static void shmem_put_super(struct super_block *sb)
{
struct shmem_sb_info *sbinfo = SHMEM_SB(sb);
...
...
@@ -201,7 +201,7 @@ index c8f7540ef048..f001b83ad1c3 100644
percpu_counter_destroy(&sbinfo->used_blocks);
mpol_put(sbinfo->mpol);
kfree(sbinfo);
@@ -365
8
,6 +366
8
,8 @@
static int shmem_fill_super(struct super_block *sb, struct fs_context *fc)
@@ -365
6
,6 +366
6
,8 @@
static int shmem_fill_super(struct super_block *sb, struct fs_context *fc)
#else
sb->s_flags |= SB_NOUSER;
#endif
...
...
@@ -210,7 +210,7 @@ index c8f7540ef048..f001b83ad1c3 100644
sbinfo->max_blocks = ctx->blocks;
sbinfo->free_inodes = sbinfo->max_inodes = ctx->inodes;
sbinfo->uid = ctx->uid;
@@ -376
9
,6 +37
81
,15 @@
static void shmem_destroy_inodecache(void)
@@ -376
7
,6 +37
79
,15 @@
static void shmem_destroy_inodecache(void)
kmem_cache_destroy(shmem_inode_cachep);
}
...
...
@@ -226,7 +226,7 @@ index c8f7540ef048..f001b83ad1c3 100644
static const struct address_space_operations shmem_aops = {
.writepage = shmem_writepage,
.set_page_dirty = __set_page_dirty_no_writeback,
@@ -390
9
,6 +39
30
,7 @@
int __init shmem_init(void)
@@ -390
7
,6 +39
28
,7 @@
int __init shmem_init(void)
pr_err("Could not kern_mount tmpfs\n");
goto out1;
}
...
...
vfs-ino.patch
View file @
71aa8fd6
SPDX-License-Identifier: GPL-2.0
diff --git a/fs/inode.c b/fs/inode.c
index
7d57068b6b7a..d78538d2e0c0
100644
index
93d9252a00ab..325fbc77b91a
100644
--- a/fs/inode.c
+++ b/fs/inode.c
@@ -89
3
,6 +89
3
,8 @@
unsigned int get_next_ino(void)
@@ -89
4
,6 +89
4
,8 @@
unsigned int get_next_ino(void)
unsigned int *p = &get_cpu_var(last_ino);
unsigned int res = *p;
...
...
@@ -13,7 +13,7 @@ index 7d57068b6b7a..d78538d2e0c0 100644
#ifdef CONFIG_SMP
if (unlikely((res & (LAST_INO_BATCH-1)) == 0)) {
static atomic_t shared_last_ino;
@@ -90
5
,7 +90
7
,7 @@
unsigned int get_next_ino(void)
@@ -90
6
,7 +90
8
,7 @@
unsigned int get_next_ino(void)
res++;
/* get_next_ino should not provide a 0 inode number */
if (unlikely(!res))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment