diff options
author | Ingo Molnar <mingo@kernel.org> | 2017-11-08 04:17:15 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2017-11-08 04:17:15 -0500 |
commit | 8a103df440afea30c91ebd42e61dc644e647f4bd (patch) | |
tree | 2cfa99e9c6e1e138e1404bce4294e46cb0034cce /fs/proc | |
parent | a9903f04e0a4ea522d959c2f287cdf0ab029e324 (diff) | |
parent | fbc3edf7d7731d7a22c483c679700589bab936a3 (diff) |
Merge branch 'linus' into sched/core, to pick up fixes
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'fs/proc')
-rw-r--r-- | fs/proc/Makefile | 1 | ||||
-rw-r--r-- | fs/proc/array.c | 1 | ||||
-rw-r--r-- | fs/proc/base.c | 1 | ||||
-rw-r--r-- | fs/proc/cmdline.c | 1 | ||||
-rw-r--r-- | fs/proc/cpuinfo.c | 1 | ||||
-rw-r--r-- | fs/proc/devices.c | 1 | ||||
-rw-r--r-- | fs/proc/fd.c | 1 | ||||
-rw-r--r-- | fs/proc/fd.h | 1 | ||||
-rw-r--r-- | fs/proc/inode.c | 1 | ||||
-rw-r--r-- | fs/proc/interrupts.c | 1 | ||||
-rw-r--r-- | fs/proc/kcore.c | 1 | ||||
-rw-r--r-- | fs/proc/kmsg.c | 1 | ||||
-rw-r--r-- | fs/proc/loadavg.c | 1 | ||||
-rw-r--r-- | fs/proc/meminfo.c | 1 | ||||
-rw-r--r-- | fs/proc/namespaces.c | 1 | ||||
-rw-r--r-- | fs/proc/page.c | 1 | ||||
-rw-r--r-- | fs/proc/proc_sysctl.c | 1 | ||||
-rw-r--r-- | fs/proc/proc_tty.c | 1 | ||||
-rw-r--r-- | fs/proc/root.c | 1 | ||||
-rw-r--r-- | fs/proc/self.c | 1 | ||||
-rw-r--r-- | fs/proc/softirqs.c | 1 | ||||
-rw-r--r-- | fs/proc/stat.c | 1 | ||||
-rw-r--r-- | fs/proc/task_mmu.c | 7 | ||||
-rw-r--r-- | fs/proc/task_nommu.c | 1 | ||||
-rw-r--r-- | fs/proc/thread_self.c | 1 | ||||
-rw-r--r-- | fs/proc/uptime.c | 1 | ||||
-rw-r--r-- | fs/proc/version.c | 1 |
27 files changed, 32 insertions, 1 deletions
diff --git a/fs/proc/Makefile b/fs/proc/Makefile index 12c6922c913c..f7456c4e7d0f 100644 --- a/fs/proc/Makefile +++ b/fs/proc/Makefile | |||
@@ -1,3 +1,4 @@ | |||
1 | # SPDX-License-Identifier: GPL-2.0 | ||
1 | # | 2 | # |
2 | # Makefile for the Linux proc filesystem routines. | 3 | # Makefile for the Linux proc filesystem routines. |
3 | # | 4 | # |
diff --git a/fs/proc/array.c b/fs/proc/array.c index 1b5406ca8e4c..2643b3ed2741 100644 --- a/fs/proc/array.c +++ b/fs/proc/array.c | |||
@@ -1,3 +1,4 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 | ||
1 | /* | 2 | /* |
2 | * linux/fs/proc/array.c | 3 | * linux/fs/proc/array.c |
3 | * | 4 | * |
diff --git a/fs/proc/base.c b/fs/proc/base.c index ad3b0762cc3e..9d357b2ea6cb 100644 --- a/fs/proc/base.c +++ b/fs/proc/base.c | |||
@@ -1,3 +1,4 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 | ||
1 | /* | 2 | /* |
2 | * linux/fs/proc/base.c | 3 | * linux/fs/proc/base.c |
3 | * | 4 | * |
diff --git a/fs/proc/cmdline.c b/fs/proc/cmdline.c index cbd82dff7e81..403cbb12a6e9 100644 --- a/fs/proc/cmdline.c +++ b/fs/proc/cmdline.c | |||
@@ -1,3 +1,4 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 | ||
1 | #include <linux/fs.h> | 2 | #include <linux/fs.h> |
2 | #include <linux/init.h> | 3 | #include <linux/init.h> |
3 | #include <linux/proc_fs.h> | 4 | #include <linux/proc_fs.h> |
diff --git a/fs/proc/cpuinfo.c b/fs/proc/cpuinfo.c index 06f4d31e0396..e0f867cd8553 100644 --- a/fs/proc/cpuinfo.c +++ b/fs/proc/cpuinfo.c | |||
@@ -1,3 +1,4 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 | ||
1 | #include <linux/fs.h> | 2 | #include <linux/fs.h> |
2 | #include <linux/init.h> | 3 | #include <linux/init.h> |
3 | #include <linux/proc_fs.h> | 4 | #include <linux/proc_fs.h> |
diff --git a/fs/proc/devices.c b/fs/proc/devices.c index e5709343feb7..2c7f22b14489 100644 --- a/fs/proc/devices.c +++ b/fs/proc/devices.c | |||
@@ -1,3 +1,4 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 | ||
1 | #include <linux/fs.h> | 2 | #include <linux/fs.h> |
2 | #include <linux/init.h> | 3 | #include <linux/init.h> |
3 | #include <linux/proc_fs.h> | 4 | #include <linux/proc_fs.h> |
diff --git a/fs/proc/fd.c b/fs/proc/fd.c index c330495c3115..96fc70225e54 100644 --- a/fs/proc/fd.c +++ b/fs/proc/fd.c | |||
@@ -1,3 +1,4 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 | ||
1 | #include <linux/sched/signal.h> | 2 | #include <linux/sched/signal.h> |
2 | #include <linux/errno.h> | 3 | #include <linux/errno.h> |
3 | #include <linux/dcache.h> | 4 | #include <linux/dcache.h> |
diff --git a/fs/proc/fd.h b/fs/proc/fd.h index 46dafadd0083..f371a602bf58 100644 --- a/fs/proc/fd.h +++ b/fs/proc/fd.h | |||
@@ -1,3 +1,4 @@ | |||
1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
1 | #ifndef __PROCFS_FD_H__ | 2 | #ifndef __PROCFS_FD_H__ |
2 | #define __PROCFS_FD_H__ | 3 | #define __PROCFS_FD_H__ |
3 | 4 | ||
diff --git a/fs/proc/inode.c b/fs/proc/inode.c index e250910cffc8..225f541f7078 100644 --- a/fs/proc/inode.c +++ b/fs/proc/inode.c | |||
@@ -1,3 +1,4 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 | ||
1 | /* | 2 | /* |
2 | * linux/fs/proc/inode.c | 3 | * linux/fs/proc/inode.c |
3 | * | 4 | * |
diff --git a/fs/proc/interrupts.c b/fs/proc/interrupts.c index a352d5703b41..6a6bee9c603c 100644 --- a/fs/proc/interrupts.c +++ b/fs/proc/interrupts.c | |||
@@ -1,3 +1,4 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 | ||
1 | #include <linux/fs.h> | 2 | #include <linux/fs.h> |
2 | #include <linux/init.h> | 3 | #include <linux/init.h> |
3 | #include <linux/interrupt.h> | 4 | #include <linux/interrupt.h> |
diff --git a/fs/proc/kcore.c b/fs/proc/kcore.c index 45629f4b5402..4bc85cb8be6a 100644 --- a/fs/proc/kcore.c +++ b/fs/proc/kcore.c | |||
@@ -1,3 +1,4 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 | ||
1 | /* | 2 | /* |
2 | * fs/proc/kcore.c kernel ELF core dumper | 3 | * fs/proc/kcore.c kernel ELF core dumper |
3 | * | 4 | * |
diff --git a/fs/proc/kmsg.c b/fs/proc/kmsg.c index f9387bb7631b..e0f8774acd65 100644 --- a/fs/proc/kmsg.c +++ b/fs/proc/kmsg.c | |||
@@ -1,3 +1,4 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 | ||
1 | /* | 2 | /* |
2 | * linux/fs/proc/kmsg.c | 3 | * linux/fs/proc/kmsg.c |
3 | * | 4 | * |
diff --git a/fs/proc/loadavg.c b/fs/proc/loadavg.c index 983fce5c2418..9bc5c58c00ee 100644 --- a/fs/proc/loadavg.c +++ b/fs/proc/loadavg.c | |||
@@ -1,3 +1,4 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 | ||
1 | #include <linux/fs.h> | 2 | #include <linux/fs.h> |
2 | #include <linux/init.h> | 3 | #include <linux/init.h> |
3 | #include <linux/pid_namespace.h> | 4 | #include <linux/pid_namespace.h> |
diff --git a/fs/proc/meminfo.c b/fs/proc/meminfo.c index cdd979724c74..6bb20f864259 100644 --- a/fs/proc/meminfo.c +++ b/fs/proc/meminfo.c | |||
@@ -1,3 +1,4 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 | ||
1 | #include <linux/fs.h> | 2 | #include <linux/fs.h> |
2 | #include <linux/init.h> | 3 | #include <linux/init.h> |
3 | #include <linux/kernel.h> | 4 | #include <linux/kernel.h> |
diff --git a/fs/proc/namespaces.c b/fs/proc/namespaces.c index 3803b24ca220..59b17e509f46 100644 --- a/fs/proc/namespaces.c +++ b/fs/proc/namespaces.c | |||
@@ -1,3 +1,4 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 | ||
1 | #include <linux/proc_fs.h> | 2 | #include <linux/proc_fs.h> |
2 | #include <linux/nsproxy.h> | 3 | #include <linux/nsproxy.h> |
3 | #include <linux/ptrace.h> | 4 | #include <linux/ptrace.h> |
diff --git a/fs/proc/page.c b/fs/proc/page.c index 2726536489b1..1491918a33c3 100644 --- a/fs/proc/page.c +++ b/fs/proc/page.c | |||
@@ -1,3 +1,4 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 | ||
1 | #include <linux/bootmem.h> | 2 | #include <linux/bootmem.h> |
2 | #include <linux/compiler.h> | 3 | #include <linux/compiler.h> |
3 | #include <linux/fs.h> | 4 | #include <linux/fs.h> |
diff --git a/fs/proc/proc_sysctl.c b/fs/proc/proc_sysctl.c index 8f479229b349..c5cbbdff3c3d 100644 --- a/fs/proc/proc_sysctl.c +++ b/fs/proc/proc_sysctl.c | |||
@@ -1,3 +1,4 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 | ||
1 | /* | 2 | /* |
2 | * /proc/sys support | 3 | * /proc/sys support |
3 | */ | 4 | */ |
diff --git a/fs/proc/proc_tty.c b/fs/proc/proc_tty.c index 901bd06f437d..2da657848cfc 100644 --- a/fs/proc/proc_tty.c +++ b/fs/proc/proc_tty.c | |||
@@ -1,3 +1,4 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 | ||
1 | /* | 2 | /* |
2 | * proc_tty.c -- handles /proc/tty | 3 | * proc_tty.c -- handles /proc/tty |
3 | * | 4 | * |
diff --git a/fs/proc/root.c b/fs/proc/root.c index 926fb27f4ca2..4e42aba97f2e 100644 --- a/fs/proc/root.c +++ b/fs/proc/root.c | |||
@@ -1,3 +1,4 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 | ||
1 | /* | 2 | /* |
2 | * linux/fs/proc/root.c | 3 | * linux/fs/proc/root.c |
3 | * | 4 | * |
diff --git a/fs/proc/self.c b/fs/proc/self.c index 39857f6db5cf..31326bb23b8b 100644 --- a/fs/proc/self.c +++ b/fs/proc/self.c | |||
@@ -1,3 +1,4 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 | ||
1 | #include <linux/sched.h> | 2 | #include <linux/sched.h> |
2 | #include <linux/slab.h> | 3 | #include <linux/slab.h> |
3 | #include <linux/pid_namespace.h> | 4 | #include <linux/pid_namespace.h> |
diff --git a/fs/proc/softirqs.c b/fs/proc/softirqs.c index ad8a77f94beb..24072cc06e65 100644 --- a/fs/proc/softirqs.c +++ b/fs/proc/softirqs.c | |||
@@ -1,3 +1,4 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 | ||
1 | #include <linux/init.h> | 2 | #include <linux/init.h> |
2 | #include <linux/kernel_stat.h> | 3 | #include <linux/kernel_stat.h> |
3 | #include <linux/proc_fs.h> | 4 | #include <linux/proc_fs.h> |
diff --git a/fs/proc/stat.c b/fs/proc/stat.c index bd4e55f4aa20..59749dfaef67 100644 --- a/fs/proc/stat.c +++ b/fs/proc/stat.c | |||
@@ -1,3 +1,4 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 | ||
1 | #include <linux/cpumask.h> | 2 | #include <linux/cpumask.h> |
2 | #include <linux/fs.h> | 3 | #include <linux/fs.h> |
3 | #include <linux/init.h> | 4 | #include <linux/init.h> |
diff --git a/fs/proc/task_mmu.c b/fs/proc/task_mmu.c index 5589b4bd4b85..6744bd706ecf 100644 --- a/fs/proc/task_mmu.c +++ b/fs/proc/task_mmu.c | |||
@@ -1,3 +1,4 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 | ||
1 | #include <linux/mm.h> | 2 | #include <linux/mm.h> |
2 | #include <linux/vmacache.h> | 3 | #include <linux/vmacache.h> |
3 | #include <linux/hugetlb.h> | 4 | #include <linux/hugetlb.h> |
@@ -1310,13 +1311,15 @@ static int pagemap_pmd_range(pmd_t *pmdp, unsigned long addr, unsigned long end, | |||
1310 | pmd_t pmd = *pmdp; | 1311 | pmd_t pmd = *pmdp; |
1311 | struct page *page = NULL; | 1312 | struct page *page = NULL; |
1312 | 1313 | ||
1313 | if ((vma->vm_flags & VM_SOFTDIRTY) || pmd_soft_dirty(pmd)) | 1314 | if (vma->vm_flags & VM_SOFTDIRTY) |
1314 | flags |= PM_SOFT_DIRTY; | 1315 | flags |= PM_SOFT_DIRTY; |
1315 | 1316 | ||
1316 | if (pmd_present(pmd)) { | 1317 | if (pmd_present(pmd)) { |
1317 | page = pmd_page(pmd); | 1318 | page = pmd_page(pmd); |
1318 | 1319 | ||
1319 | flags |= PM_PRESENT; | 1320 | flags |= PM_PRESENT; |
1321 | if (pmd_soft_dirty(pmd)) | ||
1322 | flags |= PM_SOFT_DIRTY; | ||
1320 | if (pm->show_pfn) | 1323 | if (pm->show_pfn) |
1321 | frame = pmd_pfn(pmd) + | 1324 | frame = pmd_pfn(pmd) + |
1322 | ((addr & ~PMD_MASK) >> PAGE_SHIFT); | 1325 | ((addr & ~PMD_MASK) >> PAGE_SHIFT); |
@@ -1328,6 +1331,8 @@ static int pagemap_pmd_range(pmd_t *pmdp, unsigned long addr, unsigned long end, | |||
1328 | frame = swp_type(entry) | | 1331 | frame = swp_type(entry) | |
1329 | (swp_offset(entry) << MAX_SWAPFILES_SHIFT); | 1332 | (swp_offset(entry) << MAX_SWAPFILES_SHIFT); |
1330 | flags |= PM_SWAP; | 1333 | flags |= PM_SWAP; |
1334 | if (pmd_swp_soft_dirty(pmd)) | ||
1335 | flags |= PM_SOFT_DIRTY; | ||
1331 | VM_BUG_ON(!is_pmd_migration_entry(pmd)); | 1336 | VM_BUG_ON(!is_pmd_migration_entry(pmd)); |
1332 | page = migration_entry_to_page(entry); | 1337 | page = migration_entry_to_page(entry); |
1333 | } | 1338 | } |
diff --git a/fs/proc/task_nommu.c b/fs/proc/task_nommu.c index b00b766098fa..5b62f57bd9bc 100644 --- a/fs/proc/task_nommu.c +++ b/fs/proc/task_nommu.c | |||
@@ -1,3 +1,4 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 | ||
1 | 2 | ||
2 | #include <linux/mm.h> | 3 | #include <linux/mm.h> |
3 | #include <linux/file.h> | 4 | #include <linux/file.h> |
diff --git a/fs/proc/thread_self.c b/fs/proc/thread_self.c index 20614b62a9b7..b813e3b529f2 100644 --- a/fs/proc/thread_self.c +++ b/fs/proc/thread_self.c | |||
@@ -1,3 +1,4 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 | ||
1 | #include <linux/sched.h> | 2 | #include <linux/sched.h> |
2 | #include <linux/slab.h> | 3 | #include <linux/slab.h> |
3 | #include <linux/pid_namespace.h> | 4 | #include <linux/pid_namespace.h> |
diff --git a/fs/proc/uptime.c b/fs/proc/uptime.c index 7981c4ffe787..95a708d83721 100644 --- a/fs/proc/uptime.c +++ b/fs/proc/uptime.c | |||
@@ -1,3 +1,4 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 | ||
1 | #include <linux/fs.h> | 2 | #include <linux/fs.h> |
2 | #include <linux/init.h> | 3 | #include <linux/init.h> |
3 | #include <linux/proc_fs.h> | 4 | #include <linux/proc_fs.h> |
diff --git a/fs/proc/version.c b/fs/proc/version.c index d2154eb6d78f..94901e8e700d 100644 --- a/fs/proc/version.c +++ b/fs/proc/version.c | |||
@@ -1,3 +1,4 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 | ||
1 | #include <linux/fs.h> | 2 | #include <linux/fs.h> |
2 | #include <linux/init.h> | 3 | #include <linux/init.h> |
3 | #include <linux/kernel.h> | 4 | #include <linux/kernel.h> |