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
171af168
Commit
171af168
authored
May 29, 2019
by
J. R. Okajima
Browse files
aufs5.x-rcN 20190603
Signed-off-by:
J. R. Okajima
<
hooanon05g@gmail.com
>
parent
8fef72dc
Changes
10
Hide whitespace changes
Inline
Side-by-side
aufs5-base.patch
View file @
171af168
...
...
@@ -2,10 +2,10 @@ SPDX-License-Identifier: GPL-2.0
aufs5.x-rcN base patch
diff --git a/MAINTAINERS b/MAINTAINERS
index
2c2fce72e694..f5be2663b01
e 100644
index
429c6c624861..382d5a5edd7
e 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -2
699
,6 +2
699
,19 @@
F: include/linux/audit.h
@@ -2
758
,6 +2
758
,19 @@
F: include/linux/audit.h
F: include/uapi/linux/audit.h
F: kernel/audit*
...
...
@@ -26,10 +26,10 @@ index 2c2fce72e694..f5be2663b01e 100644
M: Miguel Ojeda Sandonis <miguel.ojeda.sandonis@gmail.com>
S: Maintained
diff --git a/drivers/block/loop.c b/drivers/block/loop.c
index
bf1c61cab8eb..7e18c8c72dcc
100644
index
102d79575895..0d62fd56648d
100644
--- a/drivers/block/loop.c
+++ b/drivers/block/loop.c
@@ -7
38
,6 +7
38
,24 @@
static int loop_change_fd(struct loop_device *lo, struct block_device *bdev,
@@ -7
46
,6 +7
46
,24 @@
static int loop_change_fd(struct loop_device *lo, struct block_device *bdev,
return error;
}
...
...
@@ -55,7 +55,7 @@ index bf1c61cab8eb..7e18c8c72dcc 100644
static ssize_t loop_attr_show(struct device *dev, char *page,
diff --git a/fs/dcache.c b/fs/dcache.c
index
aac41adf4743..fc18967c25
22 100644
index
c435398f2c81..a688a042d0
22 100644
--- a/fs/dcache.c
+++ b/fs/dcache.c
@@ -1247,7 +1247,7 @@
enum d_walk_ret {
...
...
@@ -68,7 +68,7 @@ index aac41adf4743..fc18967c2522 100644
{
struct dentry *this_parent;
diff --git a/fs/fcntl.c b/fs/fcntl.c
index
083185174c6d..78234ee16784
100644
index
3d40771e8e7c..d62303c5472a
100644
--- a/fs/fcntl.c
+++ b/fs/fcntl.c
@@ -32,7 +32,7 @@
...
...
@@ -90,10 +90,10 @@ index 083185174c6d..78234ee16784 100644
return error;
diff --git a/fs/inode.c b/fs/inode.c
index
9a453f3637f8..ee4434cea572
100644
index
df6542ec3b88..407d7b45e2ee
100644
--- a/fs/inode.c
+++ b/fs/inode.c
@@ -16
5
7,7 +16
5
7,7 @@
EXPORT_SYMBOL(generic_update_time);
@@ -167
0
,7 +167
0
,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.
*/
...
...
@@ -103,10 +103,10 @@ index 9a453f3637f8..ee4434cea572 100644
int (*update_time)(struct inode *, struct timespec64 *, int);
diff --git a/fs/namespace.c b/fs/namespace.c
index
c9cab307fa77..e56de0b2bee0
100644
index
ffb13f0562b0..4a9b8c3a70d2
100644
--- a/fs/namespace.c
+++ b/fs/namespace.c
@@ -7
69
,6 +7
69
,12 @@
static inline int check_mnt(struct mount *mnt)
@@ -7
70
,6 +7
70
,12 @@
static inline int check_mnt(struct mount *mnt)
return mnt->mnt_ns == current->nsproxy->mnt_ns;
}
...
...
@@ -120,10 +120,10 @@ index c9cab307fa77..e56de0b2bee0 100644
* vfsmount lock must be held for write
*/
diff --git a/fs/read_write.c b/fs/read_write.c
index
61b43ad7608e..8979e01e9bf0
100644
index
c543d965e288..35ab54e0a994
100644
--- a/fs/read_write.c
+++ b/fs/read_write.c
@@ -4
8
9,6 +4
8
9,28 @@
static ssize_t __vfs_write(struct file *file, const char __user *p,
@@ -49
8
,6 +49
8
,28 @@
static ssize_t __vfs_write(struct file *file, const char __user *p,
return -EINVAL;
}
...
...
@@ -153,10 +153,10 @@ index 61b43ad7608e..8979e01e9bf0 100644
{
mm_segment_t old_fs;
diff --git a/fs/splice.c b/fs/splice.c
index
25212dcc
a2
d
f..
9629564ee8f2
100644
index
14cb602d9
a2f..
58d2692c5f30
100644
--- a/fs/splice.c
+++ b/fs/splice.c
@@ -83
3
,8 +83
3
,8 @@
EXPORT_SYMBOL(generic_splice_sendpage);
@@ -83
4
,8 +83
4
,8 @@
EXPORT_SYMBOL(generic_splice_sendpage);
/*
* Attempt to initiate a splice from pipe to file.
*/
...
...
@@ -167,7 +167,7 @@ index 25212dcca2df..9629564ee8f2 100644
{
ssize_t (*splice_write)(struct pipe_inode_info *, struct file *,
loff_t *, size_t, unsigned int);
@@ -85
0
,9 +85
0
,9 @@
static long do_splice_from(struct pipe_inode_info *pipe, struct file *out,
@@ -85
1
,9 +85
1
,9 @@
static long do_splice_from(struct pipe_inode_info *pipe, struct file *out,
/*
* Attempt to initiate a splice from a file to a pipe.
*/
...
...
@@ -181,7 +181,7 @@ index 25212dcca2df..9629564ee8f2 100644
ssize_t (*splice_read)(struct file *, loff_t *,
struct pipe_inode_info *, size_t, unsigned int);
diff --git a/fs/sync.c b/fs/sync.c
index
b54e0541ad89..28607828e96f
100644
index
4d1ff010bc5a..457f4e4a5cc1
100644
--- a/fs/sync.c
+++ b/fs/sync.c
@@ -28,7 +28,7 @@
...
...
@@ -194,10 +194,10 @@ index b54e0541ad89..28607828e96f 100644
if (wait)
sync_inodes_sb(sb);
diff --git a/include/linux/fs.h b/include/linux/fs.h
index
dd28e7679089..77933034b50a
100644
index
f7fdfe93e25d..28593b894e7b
100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -13
27
,6 +13
27
,7 @@
extern void fasync_free(struct fasync_struct *);
@@ -13
33
,6 +13
33
,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 dd28e7679089..77933034b50a 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);
@@ -18
06
,6 +18
07
,7 @@
struct file_operations {
@@ -18
12
,6 +18
13
,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 dd28e7679089..77933034b50a 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);
@@ -18
76
,6 +18
7
8,12 @@
ssize_t rw_copy_check_uvector(int type, const struct iovec __user * uvector,
@@ -18
82
,6 +188
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 dd28e7679089..77933034b50a 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 *);
@@ -23
06
,6 +23
14
,7 @@
extern int current_umask(void);
@@ -23
15
,6 +23
23
,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 dd28e7679089..77933034b50a 100644
/* /sys/fs */
extern struct kobject *fs_kobj;
@@ -2
594
,6 +26
03
,7 @@
static inline bool sb_is_blkdev_sb(struct super_block *sb)
@@ -2
603
,6 +26
12
,7 @@
static inline bool sb_is_blkdev_sb(struct super_block *sb)
return false;
}
#endif
...
...
@@ -243,10 +243,10 @@ index dd28e7679089..77933034b50a 100644
extern const struct file_operations def_blk_fops;
extern const struct file_operations def_chr_fops;
diff --git a/include/linux/lockdep.h b/include/linux/lockdep.h
index
79c3873d58ac..470795d9f4a2
100644
index
6e2377e6c1d6..5a945d18a72a
100644
--- a/include/linux/lockdep.h
+++ b/include/linux/lockdep.h
@@ -32
0
,6 +32
0
,8 @@
static inline int lockdep_match_key(struct lockdep_map *lock,
@@ -32
5
,6 +32
5
,8 @@
static inline int lockdep_match_key(struct lockdep_map *lock,
return lock->key == key;
}
...
...
@@ -255,7 +255,7 @@ index 79c3873d58ac..470795d9f4a2 100644
/*
* Acquire a lock.
*
@@ -4
58
,6 +46
0
,7 @@
struct lockdep_map { };
@@ -4
63
,6 +46
5
,7 @@
struct lockdep_map { };
#define lockdep_depth(tsk) (0)
...
...
@@ -298,10 +298,10 @@ index 74b4911ac16d..19789fbea567 100644
+ unsigned int flags);
#endif
diff --git a/kernel/locking/lockdep.c b/kernel/locking/lockdep.c
index
e221be724fe8..c738ac7c3a46
100644
index
c47788fa85f9..3c35a1059890
100644
--- a/kernel/locking/lockdep.c
+++ b/kernel/locking/lockdep.c
@@ -15
1
,7 +15
1
,7 @@
static
@@ -15
2
,7 +15
2
,7 @@
static
#endif
struct lock_class lock_classes[MAX_LOCKDEP_KEYS];
...
...
@@ -310,7 +310,7 @@ index e221be724fe8..c738ac7c3a46 100644
{
if (!hlock->class_idx) {
/*
@@ -16
2
,6 +16
2
,7 @@
static inline struct lock_class *hlock_class(struct held_lock *hlock)
@@ -16
3
,6 +16
3
,7 @@
static inline struct lock_class *hlock_class(struct held_lock *hlock)
}
return lock_classes + hlock->class_idx - 1;
}
...
...
aufs5-kbuild.patch
View file @
171af168
...
...
@@ -2,10 +2,10 @@ SPDX-License-Identifier: GPL-2.0
aufs5.x-rcN kbuild patch
diff --git a/fs/Kconfig b/fs/Kconfig
index
3e6d3101f3ff..8b099435d01d
100644
index
f1046cf6ad85..95c957c2e2c3
100644
--- a/fs/Kconfig
+++ b/fs/Kconfig
@@ -26
1
,6 +26
1
,7 @@
source "fs/romfs/Kconfig"
@@ -26
2
,6 +26
2
,7 @@
source "fs/romfs/Kconfig"
source "fs/pstore/Kconfig"
source "fs/sysv/Kconfig"
source "fs/ufs/Kconfig"
...
...
@@ -14,10 +14,10 @@ index 3e6d3101f3ff..8b099435d01d 100644
endif # MISC_FILESYSTEMS
diff --git a/fs/Makefile b/fs/Makefile
index
427fec226fae..e5ec0a044931
100644
index
c9aea23aba56..57c6f47b0185
100644
--- a/fs/Makefile
+++ b/fs/Makefile
@@ -1
29
,3 +1
29
,4 @@
obj-$(CONFIG_F2FS_FS) += f2fs/
@@ -1
30
,3 +1
30
,4 @@
obj-$(CONFIG_F2FS_FS) += f2fs/
obj-$(CONFIG_CEPH_FS) += ceph/
obj-$(CONFIG_PSTORE) += pstore/
obj-$(CONFIG_EFIVAR_FS) += efivarfs/
...
...
aufs5-loopback.patch
View file @
171af168
...
...
@@ -2,10 +2,10 @@ SPDX-License-Identifier: GPL-2.0
aufs5.x-rcN loopback patch
diff --git a/drivers/block/loop.c b/drivers/block/loop.c
index
7e18c8c72dcc..33f8813e97d6
100644
index
0d62fd56648d..c5543376c6b2
100644
--- a/drivers/block/loop.c
+++ b/drivers/block/loop.c
@@ -6
25
,6 +6
25
,15 @@
static inline void loop_update_dio(struct loop_device *lo)
@@ -6
33
,6 +6
33
,15 @@
static inline void loop_update_dio(struct loop_device *lo)
lo->use_dio);
}
...
...
@@ -21,7 +21,7 @@ index 7e18c8c72dcc..33f8813e97d6 100644
static void loop_reread_partitions(struct loop_device *lo,
struct block_device *bdev)
{
@@ -6
7
8,6 +6
87
,7 @@
static int loop_change_fd(struct loop_device *lo, struct block_device *bdev,
@@ -68
6
,6 +6
95
,7 @@
static int loop_change_fd(struct loop_device *lo, struct block_device *bdev,
unsigned int arg)
{
struct file *file = NULL, *old_file;
...
...
@@ -29,7 +29,7 @@ index 7e18c8c72dcc..33f8813e97d6 100644
int error;
bool partscan;
@@ -
697
,12 +7
07
,19 @@
static int loop_change_fd(struct loop_device *lo, struct block_device *bdev,
@@ -
705
,12 +7
15
,19 @@
static int loop_change_fd(struct loop_device *lo, struct block_device *bdev,
file = fget(arg);
if (!file)
goto out_err;
...
...
@@ -49,7 +49,7 @@ index 7e18c8c72dcc..33f8813e97d6 100644
error = -EINVAL;
@@ -7
14
,6 +73
1
,7 @@
static int loop_change_fd(struct loop_device *lo, struct block_device *bdev,
@@ -7
22
,6 +73
9
,7 @@
static int loop_change_fd(struct loop_device *lo, struct block_device *bdev,
blk_mq_freeze_queue(lo->lo_queue);
mapping_set_gfp_mask(old_file->f_mapping, lo->old_gfp_mask);
lo->lo_backing_file = file;
...
...
@@ -57,7 +57,7 @@ index 7e18c8c72dcc..33f8813e97d6 100644
lo->old_gfp_mask = mapping_gfp_mask(file->f_mapping);
mapping_set_gfp_mask(file->f_mapping,
lo->old_gfp_mask & ~(__GFP_IO|__GFP_FS));
@@ -7
27
,6 +7
4
5,8 @@
static int loop_change_fd(struct loop_device *lo, struct block_device *bdev,
@@ -7
35
,6 +75
3
,8 @@
static int loop_change_fd(struct loop_device *lo, struct block_device *bdev,
* dependency.
*/
fput(old_file);
...
...
@@ -66,7 +66,7 @@ index 7e18c8c72dcc..33f8813e97d6 100644
if (partscan)
loop_reread_partitions(lo, bdev);
return 0;
@@ -73
5
,6 +7
55
,8 @@
static int loop_change_fd(struct loop_device *lo, struct block_device *bdev,
@@ -7
4
3,6 +7
63
,8 @@
static int loop_change_fd(struct loop_device *lo, struct block_device *bdev,
mutex_unlock(&loop_ctl_mutex);
if (file)
fput(file);
...
...
@@ -75,7 +75,7 @@ index 7e18c8c72dcc..33f8813e97d6 100644
return error;
}
@@ -9
21
,7 +9
43
,7 @@
static
int
loop_
prepare_queue
(struct loop_device *lo)
@@ -9
47
,7 +9
69
,7 @@
static
void
loop_
update_rotational
(struct loop_device *lo)
static int loop_set_fd(struct loop_device *lo, fmode_t mode,
struct block_device *bdev, unsigned int arg)
{
...
...
@@ -84,7 +84,7 @@ index 7e18c8c72dcc..33f8813e97d6 100644
struct inode *inode;
struct address_space *mapping;
int lo_flags = 0;
@@ -9
3
6,6 +9
5
8,12 @@
static int loop_set_fd(struct loop_device *lo, fmode_t mode,
@@ -96
2
,6 +98
4
,12 @@
static int loop_set_fd(struct loop_device *lo, fmode_t mode,
file = fget(arg);
if (!file)
goto out;
...
...
@@ -97,7 +97,7 @@ index 7e18c8c72dcc..33f8813e97d6 100644
error = mutex_lock_killable(&loop_ctl_mutex);
if (error)
@@ -9
72
,6 +10
00
,7 @@
static int loop_set_fd(struct loop_device *lo, fmode_t mode,
@@ -9
98
,6 +10
26
,7 @@
static int loop_set_fd(struct loop_device *lo, fmode_t mode,
lo->lo_device = bdev;
lo->lo_flags = lo_flags;
lo->lo_backing_file = file;
...
...
@@ -105,7 +105,7 @@ index 7e18c8c72dcc..33f8813e97d6 100644
lo->transfer = NULL;
lo->ioctl = NULL;
lo->lo_sizelimit = 0;
@@ -10
09
,6 +10
38
,8 @@
static int loop_set_fd(struct loop_device *lo, fmode_t mode,
@@ -10
36
,6 +10
65
,8 @@
static int loop_set_fd(struct loop_device *lo, fmode_t mode,
mutex_unlock(&loop_ctl_mutex);
out_putf:
fput(file);
...
...
@@ -114,7 +114,7 @@ index 7e18c8c72dcc..33f8813e97d6 100644
out:
/* This is safe: open() is still holding a reference. */
module_put(THIS_MODULE);
@@ -10
55
,6 +1
086
,7 @@
loop_init_xfer(struct loop_device *lo, struct loop_func_table *xfer,
@@ -10
82
,6 +1
113
,7 @@
loop_init_xfer(struct loop_device *lo, struct loop_func_table *xfer,
static int __loop_clr_fd(struct loop_device *lo, bool release)
{
struct file *filp = NULL;
...
...
@@ -122,7 +122,7 @@ index 7e18c8c72dcc..33f8813e97d6 100644
gfp_t gfp = lo->old_gfp_mask;
struct block_device *bdev = lo->lo_device;
int err = 0;
@@ -1
078
,6 +11
10
,7 @@
static int __loop_clr_fd(struct loop_device *lo, bool release)
@@ -1
105
,6 +11
37
,7 @@
static int __loop_clr_fd(struct loop_device *lo, bool release)
spin_lock_irq(&lo->lo_lock);
lo->lo_backing_file = NULL;
...
...
@@ -130,7 +130,7 @@ index 7e18c8c72dcc..33f8813e97d6 100644
spin_unlock_irq(&lo->lo_lock);
loop_release_xfer(lo);
@@ -11
60
,6 +1
193
,8 @@
static int __loop_clr_fd(struct loop_device *lo, bool release)
@@ -11
87
,6 +1
220
,8 @@
static int __loop_clr_fd(struct loop_device *lo, bool release)
*/
if (filp)
fput(filp);
...
...
@@ -190,7 +190,7 @@ index 9ba35a878ecd..4ed0ff03d5ab 100644
+ return f;
+}
diff --git a/fs/aufs/loop.h b/fs/aufs/loop.h
index
c42cbe71ed4b..255e2d3763e7
100644
index
f31e40aff267..e13fb1a0717a
100644
--- a/fs/aufs/loop.h
+++ b/fs/aufs/loop.h
@@ -26,6 +26,8 @@
void au_warn_loopback(struct super_block *h_sb);
...
...
@@ -200,7 +200,7 @@ index c42cbe71ed4b..255e2d3763e7 100644
+
+struct file *aufs_real_loop(struct file *file);
#else
AuStub(struct file *, loop_backing_file, return NULL)
AuStub(struct file *, loop_backing_file, return NULL
, struct super_block *sb
)
@@ -36,6 +38,8 @@
AuStubVoid(au_warn_loopback, struct super_block *h_sb)
...
...
@@ -212,10 +212,10 @@ index c42cbe71ed4b..255e2d3763e7 100644
#endif /* __KERNEL__ */
diff --git a/fs/aufs/super.c b/fs/aufs/super.c
index
73255f63b80c
..f
0
4e
211cbf89
100644
index
a97e2921cb09
..f
7
4e
b6962684
100644
--- a/fs/aufs/super.c
+++ b/fs/aufs/super.c
@@ -84
6
,7 +84
6
,10 @@
static const struct super_operations aufs_sop = {
@@ -84
4
,7 +84
4
,10 @@
static const struct super_operations aufs_sop = {
.statfs = aufs_statfs,
.put_super = aufs_put_super,
.sync_fs = aufs_sync_fs,
...
...
@@ -228,10 +228,10 @@ index 73255f63b80c..f04e211cbf89 100644
/* ---------------------------------------------------------------------- */
diff --git a/include/linux/fs.h b/include/linux/fs.h
index
77933034b50a..9a9b195fb847
100644
index
28593b894e7b..bdc2611787df
100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -194
0
,6 +194
0
,10 @@
struct super_operations {
@@ -194
7
,6 +194
7
,10 @@
struct super_operations {
struct shrink_control *);
long (*free_cached_objects)(struct super_block *,
struct shrink_control *);
...
...
aufs5-mmap.patch
View file @
171af168
...
...
@@ -2,10 +2,10 @@ SPDX-License-Identifier: GPL-2.0
aufs5.x-rcN mmap patch
diff --git a/fs/proc/base.c b/fs/proc/base.c
index
6a803a0b75df..a51f41a1b4dd
100644
index
9c8ca6cd3ce4..2ae2c94aceca
100644
--- a/fs/proc/base.c
+++ b/fs/proc/base.c
@@ -201
9
,7 +201
9
,7 @@
static int map_files_get_link(struct dentry *dentry, struct path *path)
@@ -201
4
,7 +201
4
,7 @@
static int map_files_get_link(struct dentry *dentry, struct path *path)
down_read(&mm->mmap_sem);
vma = find_exact_vma(mm, vm_start, vm_end);
if (vma && vma->vm_file) {
...
...
@@ -31,7 +31,7 @@ index 3b63be64e436..fb9913bf3d10 100644
ino = inode->i_ino;
}
diff --git a/fs/proc/task_mmu.c b/fs/proc/task_mmu.c
index
95ca1fe7283c..914d9fa7c596
100644
index
01d4eb0e6bd1..fedfaa012768
100644
--- a/fs/proc/task_mmu.c
+++ b/fs/proc/task_mmu.c
@@ -305,7 +305,10 @@
show_map_vma(struct seq_file *m, struct vm_area_struct *vma)
...
...
@@ -46,7 +46,7 @@ index 95ca1fe7283c..914d9fa7c596 100644
dev = inode->i_sb->s_dev;
ino = inode->i_ino;
pgoff = ((loff_t)vma->vm_pgoff) << PAGE_SHIFT;
@@ -176
0
,7 +176
3
,7 @@
static int show_numa_map(struct seq_file *m, void *v)
@@ -176
1
,7 +176
4
,7 @@
static int show_numa_map(struct seq_file *m, void *v)
struct proc_maps_private *proc_priv = &numa_priv->proc_maps;
struct vm_area_struct *vma = v;
struct numa_maps *md = &numa_priv->md;
...
...
@@ -72,10 +72,10 @@ index 36bf0f2e102e..8df6cbc58756 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
6b10c21630f5..5951915df163
100644
index
0e8834ac32b7..b3f42f01aaf0
100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -1
486
,6 +1
486
,28 @@
static inline void unmap_shared_mapping_range(struct address_space *mapping,
@@ -1
542
,6 +1
542
,28 @@
static inline void unmap_shared_mapping_range(struct address_space *mapping,
unmap_mapping_range(mapping, holebegin, holelen, 0);
}
...
...
@@ -105,10 +105,10 @@ index 6b10c21630f5..5951915df163 100644
void *buf, int len, unsigned int gup_flags);
extern int access_remote_vm(struct mm_struct *mm, unsigned long addr,
diff --git a/include/linux/mm_types.h b/include/linux/mm_types.h
index
4ef4bbe78a1d..8cac6e0bc1a8
100644
index
8ec38b11b361..d3f5492a2611
100644
--- a/include/linux/mm_types.h
+++ b/include/linux/mm_types.h
@@ -25
0
,6 +25
0
,7 @@
struct vm_region {
@@ -25
3
,6 +25
3
,7 @@
struct vm_region {
unsigned long vm_top; /* region allocated to here */
unsigned long vm_pgoff; /* the offset in vm_file corresponding to vm_start */
struct file *vm_file; /* the backing file or NULL */
...
...
@@ -116,7 +116,7 @@ index 4ef4bbe78a1d..8cac6e0bc1a8 100644
int vm_usage; /* region usage count (access under nommu_region_sem) */
bool vm_icache_flushed : 1; /* true if the icache has been flushed for
@@ -32
4
,6 +32
5
,7 @@
struct vm_area_struct {
@@ -32
7
,6 +32
8
,7 @@
struct vm_area_struct {
unsigned long vm_pgoff; /* Offset (within vm_file) in PAGE_SIZE
units */
struct file * vm_file; /* File we map to (can be NULL). */
...
...
@@ -125,10 +125,10 @@ index 4ef4bbe78a1d..8cac6e0bc1a8 100644
atomic_long_t swap_readahead_info;
diff --git a/kernel/fork.c b/kernel/fork.c
index
9dcd18aa210b..cf478ebb6926
100644
index
b2b87d450b80..c97d53f7c49a
100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -54
6
,7 +54
6
,7 @@
static __latent_entropy int dup_mmap(struct mm_struct *mm,
@@ -54
9
,7 +54
9
,7 @@
static __latent_entropy int dup_mmap(struct mm_struct *mm,
struct inode *inode = file_inode(file);
struct address_space *mapping = file->f_mapping;
...
...
@@ -138,7 +138,7 @@ index 9dcd18aa210b..cf478ebb6926 100644
atomic_dec(&inode->i_writecount);
i_mmap_lock_write(mapping);
diff --git a/mm/Makefile b/mm/Makefile
index
d210cc9d6f80..e77e80ce7298
100644
index
ac5e5ba78874..5decb22d13a0
100644
--- a/mm/Makefile
+++ b/mm/Makefile
@@ -39,7 +39,7 @@
obj-y := filemap.o mempool.o oom_kill.o fadvise.o \
...
...
@@ -148,13 +148,13 @@ index d210cc9d6f80..e77e80ce7298 100644
- debug.o $(mmu-y)
+ prfile.o debug.o $(mmu-y)
obj-y += init-mm.o
obj
-y
+
=
memb
loc
k
.o
# Give 'page_alloc' its own module-parameter namespace
page-alloc
-y
:
=
page_al
loc.o
diff --git a/mm/filemap.c b/mm/filemap.c
index d
78f577baef2..7dcd21948a79
100644
index d
f2006ba0cfa..d5221dedfe56
100644
--- a/mm/filemap.c
+++ b/mm/filemap.c
@@ -2
764
,7 +2
764
,7 @@
vm_fault_t filemap_page_mkwrite(struct vm_fault *vmf)
@@ -2
671
,7 +2
671
,7 @@
vm_fault_t filemap_page_mkwrite(struct vm_fault *vmf)
vm_fault_t ret = VM_FAULT_LOCKED;
sb_start_pagefault(inode->i_sb);
...
...
@@ -164,10 +164,10 @@ index d78f577baef2..7dcd21948a79 100644
if (page->mapping != inode->i_mapping) {
unlock_page(page);
diff --git a/mm/mmap.c b/mm/mmap.c
index
bd7b9f293b39..f3fd32a1df36
100644
index
7e8c3e8ae75f..d8a903f61262
100644
--- a/mm/mmap.c
+++ b/mm/mmap.c
@@ -18
1
,7 +18
1
,7 @@
static struct vm_area_struct *remove_vma(struct vm_area_struct *vma)
@@ -18
2
,7 +18
2
,7 @@
static struct vm_area_struct *remove_vma(struct vm_area_struct *vma)
if (vma->vm_ops && vma->vm_ops->close)
vma->vm_ops->close(vma);
if (vma->vm_file)
...
...
@@ -176,7 +176,7 @@ index bd7b9f293b39..f3fd32a1df36 100644
mpol_put(vma_policy(vma));
vm_area_free(vma);
return next;
@@ -93
0
,7 +93
0
,7 @@
int __vma_adjust(struct vm_area_struct *vma, unsigned long start,
@@ -93
1
,7 +93
1
,7 @@
int __vma_adjust(struct vm_area_struct *vma, unsigned long start,
if (remove_next) {
if (file) {
uprobe_munmap(next, next->vm_start, next->vm_end);
...
...
@@ -185,7 +185,7 @@ index bd7b9f293b39..f3fd32a1df36 100644
}
if (next->anon_vma)
anon_vma_merge(vma, next);
@@ -184
6
,8 +184
6
,8 @@
unsigned long mmap_region(struct file *file, unsigned long addr,
@@ -184
7
,8 +184
7
,8 @@
unsigned long mmap_region(struct file *file, unsigned long addr,
return addr;
unmap_and_free_vma:
...
...
@@ -195,7 +195,7 @@ index bd7b9f293b39..f3fd32a1df36 100644
/* Undo any partial mapping done by a device driver. */
unmap_region(mm, vma, prev, vma->vm_start, vma->vm_end);
@@ -26
79
,7 +26
79
,7 @@
int __split_vma(struct mm_struct *mm, struct vm_area_struct *vma,
@@ -26
80
,7 +26
80
,7 @@
int __split_vma(struct mm_struct *mm, struct vm_area_struct *vma,
goto out_free_mpol;
if (new->vm_file)
...
...
@@ -204,7 +204,7 @@ index bd7b9f293b39..f3fd32a1df36 100644
if (new->vm_ops && new->vm_ops->open)
new->vm_ops->open(new);
@@ -269
8
,7 +269
8
,7 @@
int __split_vma(struct mm_struct *mm, struct vm_area_struct *vma,
@@ -269
9
,7 +269
9
,7 @@
int __split_vma(struct mm_struct *mm, struct vm_area_struct *vma,
if (new->vm_ops && new->vm_ops->close)
new->vm_ops->close(new);
if (new->vm_file)
...
...
@@ -213,7 +213,7 @@ index bd7b9f293b39..f3fd32a1df36 100644
unlink_anon_vmas(new);
out_free_mpol:
mpol_put(vma_policy(new));
@@ -28
88
,7 +28
88
,7 @@
SYSCALL_DEFINE5(remap_file_pages, unsigned long, start, unsigned long, size,
@@ -28
90
,7 +28
90
,7 @@
SYSCALL_DEFINE5(remap_file_pages, unsigned long, start, unsigned long, size,
struct vm_area_struct *vma;
unsigned long populate = 0;
unsigned long ret = -EINVAL;
...
...
@@ -222,7 +222,7 @@ index bd7b9f293b39..f3fd32a1df36 100644
pr_warn_once("%s (%d) uses deprecated remap_file_pages() syscall. See Documentation/vm/remap_file_pages.rst.\n",
current->comm, current->pid);
@@ -296
3
,10 +296
3
,27 @@
SYSCALL_DEFINE5(remap_file_pages, unsigned long, start, unsigned long, size,
@@ -296
5
,10 +296
5
,27 @@
SYSCALL_DEFINE5(remap_file_pages, unsigned long, start, unsigned long, size,
}
}
...
...
@@ -251,7 +251,7 @@ index bd7b9f293b39..f3fd32a1df36 100644
out:
up_write(&mm->mmap_sem);
if (populate)
@@ -325
6
,7 +327
3
,7 @@
struct vm_area_struct *copy_vma(struct vm_area_struct **vmap,
@@ -325
8
,7 +327
5
,7 @@
struct vm_area_struct *copy_vma(struct vm_area_struct **vmap,
if (anon_vma_clone(new_vma, vma))
goto out_free_mempol;
if (new_vma->vm_file)
...
...
@@ -261,10 +261,10 @@ index bd7b9f293b39..f3fd32a1df36 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
749276beb109..c7957f06fbc4
100644
index
d8c02fbe03b5..22dae8b7216a
100644
--- a/mm/nommu.c
+++ b/mm/nommu.c
@@ -6
25
,7 +6
25
,7 @@
static void __put_nommu_region(struct vm_region *region)
@@ -6
40
,7 +6
40
,7 @@
static void __put_nommu_region(struct vm_region *region)
up_write(&nommu_region_sem);
if (region->vm_file)
...
...
@@ -273,7 +273,7 @@ index 749276beb109..c7957f06fbc4 100644
/* IO memory and memory shared directly out of the pagecache
* from ramfs/tmpfs mustn't be released here */
@@ -7
63
,7 +7
63
,7 @@
static void delete_vma(struct mm_struct *mm, struct vm_area_struct *vma)
@@ -7
78
,7 +7
78
,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 749276beb109..c7957f06fbc4 100644
put_nommu_region(vma->vm_region);
vm_area_free(vma);
}
@@ -1
286
,7 +1
286
,7 @@
unsigned long do_mmap(struct file *file,
@@ -1
301
,7 +1
301
,7 @@
unsigned long do_mmap(struct file *file,
goto error_just_free;
}
}
...
...
@@ -291,7 +291,7 @@ index 749276beb109..c7957f06fbc4 100644
kmem_cache_free(vm_region_jar, region);
region = pregion;
result = start;
@@ -136
1
,10 +136
1
,10 @@
unsigned long do_mmap(struct file *file,
@@ -13
7
6,10 +13
7
6,10 @@
unsigned long do_mmap(struct file *file,
up_write(&nommu_region_sem);
error:
if (region->vm_file)
...
...
aufs5-standalone.patch
View file @
171af168
...
...
@@ -2,7 +2,7 @@ SPDX-License-Identifier: GPL-2.0
aufs5.x-rcN standalone patch
diff --git a/fs/dcache.c b/fs/dcache.c
index
fc18967c2522..50eb587c1253
100644
index
a688a042d022..3fc74e471924
100644
--- a/fs/dcache.c
+++ b/fs/dcache.c
@@ -1352,6 +1352,7 @@
void d_walk(struct dentry *parent, void *data,
...
...
@@ -13,7 +13,7 @@ index fc18967c2522..50eb587c1253 100644
struct check_mount {
struct vfsmount *mnt;
@@ -28
4
5,6 +28
46
,7 @@
void d_exchange(struct dentry *dentry1, struct dentry *dentry2)
@@ -285
0
,6 +28
51
,7 @@
void d_exchange(struct dentry *dentry1, struct dentry *dentry2)
write_sequnlock(&rename_lock);
}
...
...
@@ -22,10 +22,10 @@ index fc18967c2522..50eb587c1253 100644
/**
* d_ancestor - search for an ancestor
diff --git a/fs/exec.c b/fs/exec.c
index
2e0033348d8e..bd946a5b9b1e
100644
index
89a500bb897a..1a722915ed77
100644
--- a/fs/exec.c
+++ b/fs/exec.c
@@ -10
9
,6 +10
9
,7 @@
bool path_noexec(const struct path *path)
@@ -1
1
0,6 +1
1
0,7 @@
bool path_noexec(const struct path *path)
return (path->mnt->mnt_flags & MNT_NOEXEC) ||
(path->mnt->mnt_sb->s_iflags & SB_I_NOEXEC);
}
...
...
@@ -34,7 +34,7 @@ index 2e0033348d8e..bd946a5b9b1e 100644
#ifdef CONFIG_USELIB
/*
diff --git a/fs/fcntl.c b/fs/fcntl.c
index
78234ee16784..2072f690b121
100644
index
d62303c5472a..d4ad34463848
100644
--- a/fs/fcntl.c
+++ b/fs/fcntl.c
@@ -85,6 +85,7 @@
int setfl(int fd, struct file * filp, unsigned long arg)
...
...
@@ -46,10 +46,10 @@ index 78234ee16784..2072f690b121 100644
static void f_modown(struct file *filp, struct pid *pid, enum pid_type type,
int force)
diff --git a/fs/file_table.c b/fs/file_table.c
index
155d7514a094..eefcbb908038
100644
index
b07b53f24ff5..34b9bbf4c556
100644
--- a/fs/file_table.c
+++ b/fs/file_table.c
@@ -16
1
,6 +16
1
,7 @@
struct file *alloc_empty_file(int flags, const struct cred *cred)
@@ -16
2
,6 +16
2
,7 @@
struct file *alloc_empty_file(int flags, const struct cred *cred)
}
return ERR_PTR(-ENFILE);
}
...
...
@@ -57,7 +57,7 @@ index 155d7514a094..eefcbb908038 100644
/*
* Variant of alloc_empty_file() that doesn't check and modify nr_files.
@@ -32
3
,6 +32
4
,7 @@
void flush_delayed_fput(void)
@@ -32
7
,6 +32
8
,7 @@
void flush_delayed_fput(void)
{
delayed_fput(NULL);
}
...
...
@@ -65,7 +65,7 @@ index 155d7514a094..eefcbb908038 100644
static DECLARE_DELAYED_WORK(delayed_fput_work, delayed_fput);
@@ -37
0
,6 +37
2
,7 @@
void __fput_sync(struct file *file)
@@ -37
4
,6 +37
6
,7 @@
void __fput_sync(struct file *file)
}
EXPORT_SYMBOL(fput);
...
...
@@ -74,10 +74,10 @@ index 155d7514a094..eefcbb908038 100644
void __init files_init(void)
{
diff --git a/fs/inode.c b/fs/inode.c
index
ee4434cea572..78b9f5631976
100644
index
407d7b45e2ee..b4d3e100abd0
100644
--- a/fs/inode.c
+++ b/fs/inode.c
@@ -16
66
,6 +16
66
,7 @@
int update_time(struct inode *inode, struct timespec64 *time, int flags)
@@ -16
79
,6 +16
79
,7 @@
int update_time(struct inode *inode, struct timespec64 *time, int flags)
return update_time(inode, time, flags);
}
...
...
@@ -86,10 +86,10 @@ index ee4434cea572..78b9f5631976 100644
/**
* touch_atime - update the access time
diff --git a/fs/namespace.c b/fs/namespace.c
index
e56de0b2bee0..f63c51204a41
100644
index
4a9b8c3a70d2..64e82b22d55e
100644
--- a/fs/namespace.c
+++ b/fs/namespace.c
@@ -43
5
,6 +43
5
,7 @@
void __mnt_drop_write(struct vfsmount *mnt)
@@ -43
6
,6 +43
6
,7 @@
void __mnt_drop_write(struct vfsmount *mnt)
mnt_dec_writers(real_mount(mnt));
preempt_enable();
}
...
...
@@ -97,7 +97,7 @@ index e56de0b2bee0..f63c51204a41 100644
/**
* mnt_drop_write - give up write access to a mount
@@ -77
4
,6 +77
5
,7 @@
int is_current_mnt_ns(struct vfsmount *mnt)
@@ -77
5
,6 +77
6
,7 @@
int is_current_mnt_ns(struct vfsmount *mnt)
{
return check_mnt(real_mount(mnt));
}
...
...
@@ -105,7 +105,7 @@ index e56de0b2bee0..f63c51204a41 100644
/*
* vfsmount lock must be held for write
@@ -1
886
,6 +1
888
,7 @@
int iterate_mounts(int (*f)(struct vfsmount *, void *), void *arg,
@@ -1
908
,6 +1
910
,7 @@
int iterate_mounts(int (*f)(struct vfsmount *, void *), void *arg,
}
return 0;
}
...
...
@@ -114,10 +114,10 @@ index e56de0b2bee0..f63c51204a41 100644
static void lock_mnt_tree(struct mount *mnt)
{
diff --git a/fs/notify/group.c b/fs/notify/group.c
index
c
03
b83662876..94d210ca384a
100644
index 03
91190305cc..0b9f7f6d8390
100644
--- a/fs/notify/group.c
+++ b/fs/notify/group.c
@@ -
112
,6 +
112
,7 @@
void fsnotify_get_group(struct fsnotify_group *group)
@@ -
99
,6 +
99
,7 @@
void fsnotify_get_group(struct fsnotify_group *group)
{
refcount_inc(&group->refcnt);
}
...
...
@@ -125,7 +125,7 @@ index c03b83662876..94d210ca384a 100644
/*
* Drop a reference to a group. Free it if it's through.
@@ -1
21
,6 +1
22
,7 @@
void fsnotify_put_group(struct fsnotify_group *group)
@@ -1
08
,6 +1
09
,7 @@
void fsnotify_put_group(struct fsnotify_group *group)
if (refcount_dec_and_test(&group->refcnt))
fsnotify_final_destroy_group(group);
}
...
...
@@ -133,7 +133,7 @@ index c03b83662876..94d210ca384a 100644
/*
* Create a new fsnotify_group and hold a reference for the group returned.
@@ -1
50
,6 +1
52
,7 @@
struct fsnotify_group *fsnotify_alloc_group(const struct fsnotify_ops *ops)
@@ -1
37
,6 +1
39
,7 @@
struct fsnotify_group *fsnotify_alloc_group(const struct fsnotify_ops *ops)
return group;
}
...
...
@@ -142,10 +142,10 @@ index c03b83662876..94d210ca384a 100644
int fsnotify_fasync(int fd, struct file *file, int on)
{
diff --git a/fs/notify/mark.c b/fs/notify/mark.c
index 2
2acb0a79b53..a38381e57490
100644
index 2
5eb247ea85a..6a2a2f722eae
100644
--- a/fs/notify/mark.c
+++ b/fs/notify/mark.c
@@ -2
89
,6 +2
89
,7 @@
void fsnotify_put_mark(struct fsnotify_mark *mark)
@@ -2
76
,6 +2
76
,7 @@
void fsnotify_put_mark(struct fsnotify_mark *mark)
queue_delayed_work(system_unbound_wq, &reaper_work,
FSNOTIFY_REAPER_DELAY);
}
...
...
@@ -153,7 +153,7 @@ index 22acb0a79b53..a38381e57490 100644
/*
* Get mark reference when we found the mark via lockless traversal of object
@@ -4
4
3,6 +4
44
,7 @@
void fsnotify_destroy_mark(struct fsnotify_mark *mark,
@@ -43
0
,6 +4
31
,7 @@
void fsnotify_destroy_mark(struct fsnotify_mark *mark,
mutex_unlock(&group->mark_mutex);
fsnotify_free_mark(mark);
}
...
...
@@ -161,7 +161,7 @@ index 22acb0a79b53..a38381e57490 100644
/*
* Sorting function for lists of fsnotify marks.
@@ -6
85
,6 +6
8
7,7 @@
int fsnotify_add_mark(struct fsnotify_mark *mark, fsnotify_connp_t *connp,
@@ -6
77
,6 +67
9
,7 @@
int fsnotify_add_mark(struct fsnotify_mark *mark, fsnotify_connp_t *connp,
mutex_unlock(&group->mark_mutex);
return ret;
}
...
...
@@ -169,7 +169,7 @@ index 22acb0a79b53..a38381e57490 100644
/*
* Given a list of marks, find the mark associated with given group. If found
@@ -80
9
,6 +8
12
,7 @@
void fsnotify_init_mark(struct fsnotify_mark *mark,
@@ -80
1
,6 +8
04
,7 @@
void fsnotify_init_mark(struct fsnotify_mark *mark,
mark->group = group;
WRITE_ONCE(mark->connector, NULL);
}
...
...
@@ -178,10 +178,10 @@ index 22acb0a79b53..a38381e57490 100644
/*
* Destroy all marks in destroy_list, waits for SRCU period to finish before
diff --git a/fs/open.c b/fs/open.c
index
a00350018a47..fc17a6a34071
100644
index
b5b80469b93d..eb818f6b9519
100644
--- a/fs/open.c
+++ b/fs/open.c
@@ -6
4
,6 +6
4
,7 @@
int do_truncate(struct dentry *dentry, loff_t length, unsigned int time_attrs,
@@ -6
5
,6 +6
5
,7 @@
int do_truncate(struct dentry *dentry, loff_t length, unsigned int time_attrs,
inode_unlock(dentry->d_inode);
return ret;
}
...
...
@@ -190,10 +190,10 @@ index a00350018a47..fc17a6a34071 100644
long vfs_truncate(const struct path *path, loff_t length)
{
diff --git a/fs/read_write.c b/fs/read_write.c
index
8979e01e9bf0..50fb9b2d1418
100644
index
35ab54e0a994..9da238d64ea4
100644
--- a/fs/read_write.c
+++ b/fs/read_write.c
@@ -4
59
,6 +4
59
,7 @@
ssize_t vfs_read(struct file *file, char __user *buf, size_t count, loff_t *pos)
@@ -4
68
,6 +4
68
,7 @@
ssize_t vfs_read(struct file *file, char __user *buf, size_t count, loff_t *pos)
return ret;
}
...
...
@@ -201,7 +201,7 @@ index 8979e01e9bf0..50fb9b2d1418 100644
static ssize_t new_sync_write(struct file *filp, const char __user *buf, size_t len, loff_t *ppos)
{
@@ -
499
,6 +50
0
,7 @@
vfs_readf_t vfs_readf(struct file *file)
@@ -
508
,6 +50
9
,7 @@
vfs_readf_t vfs_readf(struct file *file)
return new_sync_read;
return ERR_PTR(-ENOSYS);
}
...
...
@@ -209,7 +209,7 @@ index 8979e01e9bf0..50fb9b2d1418 100644
vfs_writef_t vfs_writef(struct file *file)
{
@@ -51
0
,6 +5
1
2,7 @@
vfs_writef_t vfs_writef(struct file *file)
@@ -51
9
,6 +52
1
,7 @@
vfs_writef_t vfs_writef(struct file *file)
return new_sync_write;
return ERR_PTR(-ENOSYS);
}
...
...
@@ -217,19 +217,19 @@ index 8979e01e9bf0..50fb9b2d1418 100644
ssize_t __kernel_write(struct file *file, const void *buf, size_t count, loff_t *pos)
{
@@ -5
79
,6 +5
82
,7 @@
ssize_t vfs_write(struct file *file, const char __user *buf, size_t count, loff_
@@ -5
88
,6 +5
91
,7 @@
ssize_t vfs_write(struct file *file, const char __user *buf, size_t count, loff_
return ret;
}
+EXPORT_SYMBOL_GPL(vfs_write);
static inline loff_t
file_pos
_read(struct file *file)
{
/* file_ppos returns &
file
->f
_pos
or NULL if file is stream */
static inline loff_t *file_ppos(struct file *file)
diff --git a/fs/splice.c b/fs/splice.c
index
9629564ee8f2..f277bda5f717
100644
index
58d2692c5f30..4fe4afa7f6b1
100644
--- a/fs/splice.c
+++ b/fs/splice.c
@@ -84
6
,6 +84
6
,7 @@
long do_splice_from(struct pipe_inode_info *pipe, struct file *out,
@@ -84
7
,6 +84
7
,7 @@
long do_splice_from(struct pipe_inode_info *pipe, struct file *out,
return splice_write(pipe, out, ppos, len, flags);
}
...
...
@@ -237,7 +237,7 @@ index 9629564ee8f2..f277bda5f717 100644
/*
* Attempt to initiate a splice from a file to a pipe.
@@ -87
5
,6 +87
6
,7 @@
long do_splice_to(struct file *in, loff_t *ppos,
@@ -87
6
,6 +87
7
,7 @@
long do_splice_to(struct file *in, loff_t *ppos,
return splice_read(in, ppos, pipe, len, flags);
}
...
...
@@ -246,7 +246,7 @@ index 9629564ee8f2..f277bda5f717 100644
/**
* splice_direct_to_actor - splices data directly between two non-pipes
diff --git a/fs/sync.c b/fs/sync.c
index
28607828e96f..ffd7ea43831
e 100644
index
457f4e4a5cc1..67c66358f3f
e 100644
--- a/fs/sync.c
+++ b/fs/sync.c
@@ -39,6 +39,7 @@
int __sync_filesystem(struct super_block *sb, int wait)
...
...
@@ -258,10 +258,10 @@ index 28607828e96f..ffd7ea43831e 100644
/*
* Write out and wait upon all dirty data associated with this
diff --git a/fs/xattr.c b/fs/xattr.c
index 0d
6a6a4af861..7ce4701b7289
100644
index
9
0d
d78f0eb27..40b01dd1b14a
100644
--- a/fs/xattr.c
+++ b/fs/xattr.c
@@ -29
5
,6 +29
5
,7 @@
vfs_getxattr_alloc(struct dentry *dentry, const char *name, char **xattr_value,
@@ -29
6
,6 +29
6
,7 @@
vfs_getxattr_alloc(struct dentry *dentry, const char *name, char **xattr_value,
*xattr_value = value;
return error;
}
...
...
@@ -270,10 +270,10 @@ index 0d6a6a4af861..7ce4701b7289 100644
ssize_t
__vfs_getxattr(struct dentry *dentry, struct inode *inode, const char *name,
diff --git a/kernel/locking/lockdep.c b/kernel/locking/lockdep.c
index
c738ac7c3a46..92de98d9c634
100644
index
3c35a1059890..67dccde036a2
100644
--- a/kernel/locking/lockdep.c
+++ b/kernel/locking/lockdep.c
@@ -16
2
,6 +16
2
,7 @@
inline struct lock_class *lockdep_hlock_class(struct held_lock *hlock)
@@ -16
3
,6 +16
3
,7 @@
inline struct lock_class *lockdep_hlock_class(struct held_lock *hlock)
}
return lock_classes + hlock->class_idx - 1;
}
...
...
@@ -300,10 +300,10 @@ index dc28914fa72e..c2ddfea2b280 100644
}
+EXPORT_SYMBOL_GPL(__devcgroup_check_permission);
diff --git a/security/security.c b/security/security.c
index
23cbb1a295a3..72b2c47ef649
100644
index
613a5c00e602..7ebb58f218a0
100644
--- a/security/security.c
+++ b/security/security.c
@@ -99
2
,6 +99
2
,7 @@
int security_path_rmdir(const struct path *dir, struct dentry *dentry)
@@ -99
7
,6 +99
7
,7 @@
int security_path_rmdir(const struct path *dir, struct dentry *dentry)
return 0;
return call_int_hook(path_rmdir, 0, dir, dentry);
}
...
...
@@ -311,7 +311,7 @@ index 23cbb1a295a3..72b2c47ef649 100644
int security_path_unlink(const struct path *dir, struct dentry *dentry)
{
@@ -10
08
,6 +10
09
,7 @@
int security_path_symlink(const struct path *dir, struct dentry *dentry,
@@ -10
13
,6 +10
14
,7 @@
int security_path_symlink(const struct path *dir, struct dentry *dentry,
return 0;
return call_int_hook(path_symlink, 0, dir, dentry, old_name);
}
...
...
@@ -319,7 +319,7 @@ index 23cbb1a295a3..72b2c47ef649 100644
int security_path_link(struct dentry *old_dentry, const struct path *new_dir,
struct dentry *new_dentry)
@@ -101
6
,6 +10
18
,7 @@
int security_path_link(struct dentry *old_dentry, const struct path *new_dir,
@@ -10
2
1,6 +10
23
,7 @@
int security_path_link(struct dentry *old_dentry, const struct path *new_dir,
return 0;
return call_int_hook(path_link, 0, old_dentry, new_dir, new_dentry);
}
...
...
@@ -327,7 +327,7 @@ index 23cbb1a295a3..72b2c47ef649 100644
int security_path_rename(const struct path *old_dir, struct dentry *old_dentry,
const struct path *new_dir, struct dentry *new_dentry,
@@ -104
3
,6 +10
46
,7 @@
int security_path_truncate(const struct path *path)
@@ -104
8
,6 +10
51
,7 @@
int security_path_truncate(const struct path *path)
return 0;
return call_int_hook(path_truncate, 0, path);
}
...
...
@@ -335,7 +335,7 @@ index 23cbb1a295a3..72b2c47ef649 100644
int security_path_chmod(const struct path *path, umode_t mode)
{
@@ -105
0
,6 +105
4
,7 @@
int security_path_chmod(const struct path *path, umode_t mode)
@@ -105
5
,6 +105
9
,7 @@
int security_path_chmod(const struct path *path, umode_t mode)
return 0;
return call_int_hook(path_chmod, 0, path, mode);
}
...
...
@@ -343,7 +343,7 @@ index 23cbb1a295a3..72b2c47ef649 100644
int security_path_chown(const struct path *path, kuid_t uid, kgid_t gid)
{
@@ -10
57
,6 +106
2
,7 @@
int security_path_chown(const struct path *path, kuid_t uid, kgid_t gid)
@@ -10
62
,6 +106
7
,7 @@
int security_path_chown(const struct path *path, kuid_t uid, kgid_t gid)
return 0;
return call_int_hook(path_chown, 0, path, uid, gid);
}
...
...
@@ -351,7 +351,7 @@ index 23cbb1a295a3..72b2c47ef649 100644
int security_path_chroot(const struct path *path)
{
@@ -11
57
,6 +116
3
,7 @@
int security_inode_permission(struct inode *inode, int mask)
@@ -11
62
,6 +116
8
,7 @@
int security_inode_permission(struct inode *inode, int mask)
return 0;
return call_int_hook(inode_permission, 0, inode, mask);
}
...
...
@@ -359,7 +359,7 @@ index 23cbb1a295a3..72b2c47ef649 100644
int security_inode_setattr(struct dentry *dentry, struct iattr *attr)
{
@@ -13
28
,6 +13
35
,7 @@
int security_file_permission(struct file *file, int mask)
@@ -13
39
,6 +13
46
,7 @@
int security_file_permission(struct file *file, int mask)
return fsnotify_perm(file, mask);
}
...
...
include/uapi/linux/aufs_type.h
View file @
171af168
...
...
@@ -40,7 +40,7 @@
#include <linux/limits.h>
#define AUFS_VERSION "5.x-rcN-20190
520
"
#define AUFS_VERSION "5.x-rcN-20190
603
"
/* todo? move this to linux-2.6.19/include/magic.h */
#define AUFS_SUPER_MAGIC ('a' << 24 | 'u' << 16 | 'f' << 8 | 's')
...
...
lockdep-debug.patch
View file @
171af168
...
...
@@ -2,7 +2,7 @@ SPDX-License-Identifier: GPL-2.0
aufs5.x-rcN lockdep patch
diff --git a/include/linux/lockdep.h b/include/linux/lockdep.h
index
470795d9f4a2..42bf321d918
1 100644
index
5a945d18a72a..c6def416ec1
1 100644
--- a/include/linux/lockdep.h
+++ b/include/linux/lockdep.h
@@ -17,7 +17,7 @@
struct lockdep_map;
...
...
@@ -15,10 +15,10 @@ index 470795d9f4a2..42bf321d9181 100644
#include <linux/types.h>
diff --git a/kernel/locking/lockdep.c b/kernel/locking/lockdep.c
index
92de98d9c634..0d2eeaa651e4
100644
index
67dccde036a2..7344fb25a11f
100644
--- a/kernel/locking/lockdep.c
+++ b/kernel/locking/lockdep.c
@@ -4
495
,6 +45
01
,7 @@
void lockdep_reset(void)
@@ -4
587
,6 +45
93
,7 @@
void lockdep_reset(void)
INIT_HLIST_HEAD(chainhash_table + i);
raw_local_irq_restore(flags);
}
...
...
@@ -27,10 +27,10 @@ index 92de98d9c634..0d2eeaa651e4 100644
/* Remove a class from a lock chain. Must be called with the graph lock held. */
static void remove_class_from_lock_chain(struct pending_free *pf,
diff --git a/kernel/locking/lockdep_internals.h b/kernel/locking/lockdep_internals.h
index
d4c197425f68..a103700a63bd
100644
index
150ec3f0c5b5..e65c1d0b1ac1
100644
--- a/kernel/locking/lockdep_internals.h
+++ b/kernel/locking/lockdep_internals.h
@@ -
71
,15 +
71
,15 @@
enum {
@@ -
93
,15 +
93
,15 @@
static const unsigned long LOCKF_USED_IN_IRQ_READ =
#define MAX_LOCKDEP_CHAINS_BITS 15
#define MAX_STACK_TRACE_ENTRIES 262144UL
#else
...
...
proc_mounts.patch
0 → 100644
View file @
171af168
SPDX-License-Identifier: GPL-2.0
diff --git a/fs/mount.h b/fs/mount.h
index 6250de544760..29abfea2db50 100644
--- a/fs/mount.h
+++ b/fs/mount.h
@@ -131,9 +131,7 @@
struct proc_mounts {
struct mnt_namespace *ns;
struct path root;
int (*show)(struct seq_file *, struct vfsmount *);
- void *cached_mount;
- u64 cached_event;
- loff_t cached_index;
+ bool filled;
};
extern const struct seq_operations mounts_op;
diff --git a/fs/namespace.c b/fs/namespace.c
index ffb13f0562b0..674517838ee1 100644
--- a/fs/namespace.c
+++ b/fs/namespace.c
@@ -1260,46 +1260,78 @@
struct vfsmount *mnt_clone_internal(const struct path *path)
#ifdef CONFIG_PROC_FS
/* iterator; we want it to have access to namespace_sem, thus here... */
-static void *m_start(struct seq_file *m, loff_t *pos)
+static int m_start_fill(struct seq_file *m)
{
+ int err;
+ size_t last_count;
+ char *buf;
+ struct mount *r;
struct proc_mounts *p = m->private;
+ err = -ENODATA;
down_read(&namespace_sem);
- if (p->cached_event == p->ns->event) {
- void *v = p->cached_mount;
- if (*pos == p->cached_index)
- return v;
- if (*pos == p->cached_index + 1) {
- v = seq_list_next(v, &p->ns->list, &p->cached_index);
- return p->cached_mount = v;
+ list_for_each_entry(r, &p->ns->list, mnt_list) {
+ last_count = m->count;
+ err = p->show(m, &r->mnt);
+ if (unlikely(err < 0))
+ break;
+ if (!seq_has_overflowed(m))
+ continue;
+
+ /* expand the buffer */
+ buf = kvmalloc(m->size + PAGE_SIZE, GFP_KERNEL);
+ if (unlikely(!buf)) {
+ err = -ENOMEM;
+ break;
+ }
+ memcpy(buf, m->buf, last_count);
+ kvfree(m->buf);
+ m->buf = buf;
+ m->size += PAGE_SIZE;
+ m->count = last_count;
+
+ err = p->show(m, &r->mnt);
+ if (unlikely(err < 0))
+ break;
+ else if (unlikely(seq_has_overflowed(m))) {
+ err = -EOVERFLOW;
+ break;
}
}
+ up_read(&namespace_sem);
- p->cached_event = p->ns->event;
- p->cached_mount = seq_list_start(&p->ns->list, *pos);
- p->cached_index = *pos;
- return p->cached_mount;
+ if (!err)
+ p->filled = true;
+ return err;
}
-static void *m_next(struct seq_file *m, void *v, loff_t *pos)
+static void *m_start(struct seq_file *m, loff_t *pos)
{
+ int err;
struct proc_mounts *p = m->private;
- p->cached_mount = seq_list_next(v, &p->ns->list, pos);
- p->cached_index = *pos;
- return p->cached_mount;
+ if (!p->filled) {
+ err = m_start_fill(m);
+ if (unlikely(err))
+ return ERR_PTR(err);
+ }
+
+ return m_start; /* any valid pointer */
+}
+
+static void *m_next(struct seq_file *m, void *v, loff_t *pos)
+{
+ return NULL;
}
static void m_stop(struct seq_file *m, void *v)
{
- up_read(&namespace_sem);
+ /* empty */
}
static int m_show(struct seq_file *m, void *v)
{
- struct proc_mounts *p = m->private;
- struct mount *r = list_entry(v, struct mount, mnt_list);
- return p->show(m, &r->mnt);
+ return 0;
}
const struct seq_operations mounts_op = {
diff --git a/fs/proc_namespace.c b/fs/proc_namespace.c
index e16fb8f2049e..268e80d568ce 100644
--- a/fs/proc_namespace.c
+++ b/fs/proc_namespace.c
@@ -279,7 +279,6 @@
static int mounts_open_common(struct inode *inode, struct file *file,
p->ns = ns;
p->root = root;
p->show = show;
- p->cached_event = ~0ULL;
return 0;
tmpfs-idr.patch
View file @
171af168
...
...
@@ -20,7 +20,7 @@ index 20d815a33145..64354e89a701 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
2275a0ff7c30..0d0105d2d208
100644
index
1bb3b8dc8bb2..fa8f3dfa77c1
100644
--- a/mm/shmem.c
+++ b/mm/shmem.c
@@ -113,11 +113,14 @@
static unsigned long shmem_default_max_blocks(void)
...
...
@@ -200,7 +200,7 @@ index 2275a0ff7c30..0d0105d2d208 100644
sbinfo->mode = 0777 | S_ISVTX;
sbinfo->uid = current_fsuid();
sbinfo->gid = current_fsgid();
@@ -366
4
,6 +367
6
,15 @@
static void shmem_destroy_inodecache(void)
@@ -366
2
,6 +367
4
,15 @@
static void shmem_destroy_inodecache(void)
kmem_cache_destroy(shmem_inode_cachep);
}
...
...
@@ -216,7 +216,7 @@ index 2275a0ff7c30..0d0105d2d208 100644
static const struct address_space_operations shmem_aops = {
.writepage = shmem_writepage,
.set_page_dirty = __set_page_dirty_no_writeback,
@@ -379
4
,6 +381
5
,7 @@
int __init shmem_init(void)
@@ -379
3
,6 +381
4
,7 @@
int __init shmem_init(void)
pr_err("Could not kern_mount tmpfs\n");
goto out1;
}
...
...
vfs-ino.patch
View file @
171af168
SPDX-License-Identifier: GPL-2.0
diff --git a/fs/inode.c b/fs/inode.c
index
9a453f3637f8..d6887a6ad79f
100644
index
df6542ec3b88..f3a27241b366
100644
--- a/fs/inode.c
+++ b/fs/inode.c
@@ -8
69
,6 +8
69
,8 @@
unsigned int get_next_ino(void)
@@ -8
82
,6 +8
82
,8 @@
unsigned int get_next_ino(void)
unsigned int *p = &get_cpu_var(last_ino);
unsigned int res = *p;
...
...
@@ -12,7 +12,7 @@ index 9a453f3637f8..d6887a6ad79f 100644
#ifdef CONFIG_SMP
if (unlikely((res & (LAST_INO_BATCH-1)) == 0)) {
static atomic_t shared_last_ino;
@@ -8
81
,7 +8
83
,7 @@
unsigned int get_next_ino(void)
@@ -8
94
,7 +8
96
,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