diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2019-03-06 13:31:36 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-03-06 13:31:36 -0500 |
commit | 8dcd175bc3d50b78413c56d5b17d4bddd77412ef (patch) | |
tree | 2c2fb25759b43f2e73830f07ef3b444d76825280 /mm/page_ext.c | |
parent | afe6fe7036c6efdcb46cabc64bec9b6e4a005210 (diff) | |
parent | fff04900ea79915939ef6a3aad78fca6511a3034 (diff) |
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
...
Diffstat (limited to 'mm/page_ext.c')
-rw-r--r-- | mm/page_ext.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mm/page_ext.c b/mm/page_ext.c index 8c78b8d45117..ab4244920e0f 100644 --- a/mm/page_ext.c +++ b/mm/page_ext.c | |||
@@ -273,6 +273,7 @@ static void free_page_ext(void *addr) | |||
273 | table_size = get_entry_size() * PAGES_PER_SECTION; | 273 | table_size = get_entry_size() * PAGES_PER_SECTION; |
274 | 274 | ||
275 | BUG_ON(PageReserved(page)); | 275 | BUG_ON(PageReserved(page)); |
276 | kmemleak_free(addr); | ||
276 | free_pages_exact(addr, table_size); | 277 | free_pages_exact(addr, table_size); |
277 | } | 278 | } |
278 | } | 279 | } |
@@ -300,7 +301,7 @@ static int __meminit online_page_ext(unsigned long start_pfn, | |||
300 | start = SECTION_ALIGN_DOWN(start_pfn); | 301 | start = SECTION_ALIGN_DOWN(start_pfn); |
301 | end = SECTION_ALIGN_UP(start_pfn + nr_pages); | 302 | end = SECTION_ALIGN_UP(start_pfn + nr_pages); |
302 | 303 | ||
303 | if (nid == -1) { | 304 | if (nid == NUMA_NO_NODE) { |
304 | /* | 305 | /* |
305 | * In this case, "nid" already exists and contains valid memory. | 306 | * In this case, "nid" already exists and contains valid memory. |
306 | * "start_pfn" passed to us is a pfn which is an arg for | 307 | * "start_pfn" passed to us is a pfn which is an arg for |