Skip to content

Commit 8dcd175

Browse files
committed
Merge branch 'akpm' (patches from Andrew)
Merge misc updates from Andrew Morton: - a few misc things - ocfs2 updates - most of MM * emailed patches from Andrew Morton <akpm@linux-foundation.org>: (159 commits) tools/testing/selftests/proc/proc-self-syscall.c: remove duplicate include proc: more robust bulk read test proc: test /proc/*/maps, smaps, smaps_rollup, statm proc: use seq_puts() everywhere proc: read kernel cpu stat pointer once proc: remove unused argument in proc_pid_lookup() fs/proc/thread_self.c: code cleanup for proc_setup_thread_self() fs/proc/self.c: code cleanup for proc_setup_self() proc: return exit code 4 for skipped tests mm,mremap: bail out earlier in mremap_to under map pressure mm/sparse: fix a bad comparison mm/memory.c: do_fault: avoid usage of stale vm_area_struct writeback: fix inode cgroup switching comment mm/huge_memory.c: fix "orig_pud" set but not used mm/hotplug: fix an imbalance with DEBUG_PAGEALLOC mm/memcontrol.c: fix bad line in comment mm/cma.c: cma_declare_contiguous: correct err handling mm/page_ext.c: fix an imbalance with kmemleak mm/compaction: pass pgdat to too_many_isolated() instead of zone mm: remove zone_lru_lock() function, access ->lru_lock directly ...
2 parents afe6fe7 + fff0490 commit 8dcd175

213 files changed

Lines changed: 4918 additions & 2315 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎Documentation/admin-guide/cgroup-v2.rst‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1189,6 +1189,10 @@ PAGE_SIZE multiple when read back.
11891189
Amount of cached filesystem data that was modified and
11901190
is currently being written back to disk
11911191

1192+
anon_thp
1193+
Amount of memory used in anonymous mappings backed by
1194+
transparent hugepages
1195+
11921196
inactive_anon, active_anon, inactive_file, active_file, unevictable
11931197
Amount of memory, swap-backed and filesystem-backed,
11941198
on the internal memory management lists used by the
@@ -1248,6 +1252,18 @@ PAGE_SIZE multiple when read back.
12481252

12491253
Amount of reclaimed lazyfree pages
12501254

1255+
thp_fault_alloc
1256+
1257+
Number of transparent hugepages which were allocated to satisfy
1258+
a page fault, including COW faults. This counter is not present
1259+
when CONFIG_TRANSPARENT_HUGEPAGE is not set.
1260+
1261+
thp_collapse_alloc
1262+
1263+
Number of transparent hugepages which were allocated to allow
1264+
collapsing an existing range of pages. This counter is not
1265+
present when CONFIG_TRANSPARENT_HUGEPAGE is not set.
1266+
12511267
memory.swap.current
12521268
A read-only single value file which exists on non-root
12531269
cgroups.

‎Documentation/admin-guide/mm/pagemap.rst‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,10 @@ number of times a page is mapped.
7575
20. NOPAGE
7676
21. KSM
7777
22. THP
78-
23. BALLOON
78+
23. OFFLINE
7979
24. ZERO_PAGE
8080
25. IDLE
81+
26. PGTABLE
8182

8283
* ``/proc/kpagecgroup``. This file contains a 64-bit inode number of the
8384
memory cgroup each page is charged to, indexed by PFN. Only available when
@@ -118,8 +119,8 @@ Short descriptions to the page flags
118119
identical memory pages dynamically shared between one or more processes
119120
22 - THP
120121
contiguous pages which construct transparent hugepages
121-
23 - BALLOON
122-
balloon compaction page
122+
23 - OFFLINE
123+
page is logically offline
123124
24 - ZERO_PAGE
124125
zero page for pfn_zero or huge_zero page
125126
25 - IDLE
@@ -128,6 +129,8 @@ Short descriptions to the page flags
128129
Note that this flag may be stale in case the page was accessed via
129130
a PTE. To make sure the flag is up-to-date one has to read
130131
``/sys/kernel/mm/page_idle/bitmap`` first.
132+
26 - PGTABLE
133+
page is in use as a page table
131134

132135
IO related page flags
133136
---------------------

‎Documentation/cgroup-v1/memcg_test.txt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@ Under below explanation, we assume CONFIG_MEM_RES_CTRL_SWAP=y.
107107

108108
8. LRU
109109
Each memcg has its own private LRU. Now, its handling is under global
110-
VM's control (means that it's handled under global zone_lru_lock).
110+
VM's control (means that it's handled under global pgdat->lru_lock).
111111
Almost all routines around memcg's LRU is called by global LRU's
112-
list management functions under zone_lru_lock().
112+
list management functions under pgdat->lru_lock.
113113

114114
A special function is mem_cgroup_isolate_pages(). This scans
115115
memcg's private LRU and call __isolate_lru_page() to extract a page

‎Documentation/cgroup-v1/memory.txt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,11 +267,11 @@ When oom event notifier is registered, event will be delivered.
267267
Other lock order is following:
268268
PG_locked.
269269
mm->page_table_lock
270-
zone_lru_lock
270+
pgdat->lru_lock
271271
lock_page_cgroup.
272272
In many cases, just lock_page_cgroup() is called.
273273
per-zone-per-cgroup LRU (cgroup's private LRU) is just guarded by
274-
zone_lru_lock, it has no lock of its own.
274+
pgdat->lru_lock, it has no lock of its own.
275275

276276
2.7 Kernel Memory Extension (CONFIG_MEMCG_KMEM)
277277

‎MAINTAINERS‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9835,6 +9835,14 @@ F: kernel/sched/membarrier.c
98359835
F: include/uapi/linux/membarrier.h
98369836
F: arch/powerpc/include/asm/membarrier.h
98379837

9838+
MEMBLOCK
9839+
M: Mike Rapoport <rppt@linux.ibm.com>
9840+
L: linux-mm@kvack.org
9841+
S: Maintained
9842+
F: include/linux/memblock.h
9843+
F: mm/memblock.c
9844+
F: Documentation/core-api/boot-time-mm.rst
9845+
98389846
MEMORY MANAGEMENT
98399847
L: linux-mm@kvack.org
98409848
W: http://www.linux-mm.org

‎arch/alpha/include/asm/topology.h‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
#include <linux/smp.h>
66
#include <linux/threads.h>
7+
#include <linux/numa.h>
78
#include <asm/machvec.h>
89

910
#ifdef CONFIG_NUMA
@@ -29,7 +30,7 @@ static const struct cpumask *cpumask_of_node(int node)
2930
{
3031
int cpu;
3132

32-
if (node == -1)
33+
if (node == NUMA_NO_NODE)
3334
return cpu_all_mask;
3435

3536
cpumask_clear(&node_to_cpumask_map[node]);

‎arch/arm64/Kconfig‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1467,6 +1467,10 @@ config SYSVIPC_COMPAT
14671467
def_bool y
14681468
depends on COMPAT && SYSVIPC
14691469

1470+
config ARCH_ENABLE_HUGEPAGE_MIGRATION
1471+
def_bool y
1472+
depends on HUGETLB_PAGE && MIGRATION
1473+
14701474
menu "Power management options"
14711475

14721476
source "kernel/power/Kconfig"

‎arch/arm64/include/asm/hugetlb.h‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@
2020

2121
#include <asm/page.h>
2222

23+
#ifdef CONFIG_ARCH_ENABLE_HUGEPAGE_MIGRATION
24+
#define arch_hugetlb_migration_supported arch_hugetlb_migration_supported
25+
extern bool arch_hugetlb_migration_supported(struct hstate *h);
26+
#endif
27+
2328
#define __HAVE_ARCH_HUGE_PTEP_GET
2429
static inline pte_t huge_ptep_get(pte_t *ptep)
2530
{

‎arch/arm64/include/asm/memory.h‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,7 @@
8080
*/
8181
#ifdef CONFIG_KASAN
8282
#define KASAN_SHADOW_SIZE (UL(1) << (VA_BITS - KASAN_SHADOW_SCALE_SHIFT))
83-
#ifdef CONFIG_KASAN_EXTRA
84-
#define KASAN_THREAD_SHIFT 2
85-
#else
8683
#define KASAN_THREAD_SHIFT 1
87-
#endif /* CONFIG_KASAN_EXTRA */
8884
#else
8985
#define KASAN_SHADOW_SIZE (0)
9086
#define KASAN_THREAD_SHIFT 0

‎arch/arm64/kernel/machine_kexec.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ void crash_post_resume(void)
321321
* but does not hold any data of loaded kernel image.
322322
*
323323
* Note that all the pages in crash dump kernel memory have been initially
324-
* marked as Reserved in kexec_reserve_crashkres_pages().
324+
* marked as Reserved as memory was allocated via memblock_reserve().
325325
*
326326
* In hibernation, the pages which are Reserved and yet "nosave" are excluded
327327
* from the hibernation iamge. crash_is_nosave() does thich check for crash
@@ -361,7 +361,6 @@ void crash_free_reserved_phys_range(unsigned long begin, unsigned long end)
361361

362362
for (addr = begin; addr < end; addr += PAGE_SIZE) {
363363
page = phys_to_page(addr);
364-
ClearPageReserved(page);
365364
free_reserved_page(page);
366365
}
367366
}

0 commit comments

Comments
 (0)