Merge branch 'akpm' (patches from Andrew)
Merge second patch-bomb from Andrew Morton: "Almost all of the rest of MM. There was an unusually large amount of MM material this time" * emailed patches from Andrew Morton <akpm@linux-foundation.org>: (141 commits) zpool: remove no-op module init/exit mm: zbud: constify the zbud_ops mm: zpool: constify the zpool_ops mm: swap: zswap: maybe_preload & refactoring zram: unify error reporting zsmalloc: remove null check from destroy_handle_cache() zsmalloc: do not take class lock in zs_shrinker_count() zsmalloc: use class->pages_per_zspage zsmalloc: consider ZS_ALMOST_FULL as migrate source zsmalloc: partial page ordering within a fullness_list zsmalloc: use shrinker to trigger auto-compaction zsmalloc: account the number of compacted pages zsmalloc/zram: introduce zs_pool_stats api zsmalloc: cosmetic compaction code adjustments zsmalloc: introduce zs_can_compact() function zsmalloc: always keep per-class stats zsmalloc: drop unused variable `nr_to_migrate' mm/memblock.c: fix comment in __next_mem_range() mm/page_alloc.c: fix type information of memoryless node memory-hotplug: fix comments in zone_spanned_pages_in_node() and zone_spanned_pages_in_node() ...
This commit is contained in:
@@ -147,7 +147,8 @@ static void *locking_thread(void *arg)
|
||||
if (sizeof(page_nr) > sizeof(rand_nr)) {
|
||||
if (random_r(&rand, &rand_nr))
|
||||
fprintf(stderr, "random_r 2 error\n"), exit(1);
|
||||
page_nr |= ((unsigned long) rand_nr) << 32;
|
||||
page_nr |= (((unsigned long) rand_nr) << 16) <<
|
||||
16;
|
||||
}
|
||||
} else
|
||||
page_nr += 1;
|
||||
@@ -290,7 +291,8 @@ static void *uffd_poll_thread(void *arg)
|
||||
msg.event), exit(1);
|
||||
if (msg.arg.pagefault.flags & UFFD_PAGEFAULT_FLAG_WRITE)
|
||||
fprintf(stderr, "unexpected write fault\n"), exit(1);
|
||||
offset = (char *)msg.arg.pagefault.address - area_dst;
|
||||
offset = (char *)(unsigned long)msg.arg.pagefault.address -
|
||||
area_dst;
|
||||
offset &= ~(page_size-1);
|
||||
if (copy_page(offset))
|
||||
userfaults++;
|
||||
@@ -327,7 +329,8 @@ static void *uffd_read_thread(void *arg)
|
||||
if (bounces & BOUNCE_VERIFY &&
|
||||
msg.arg.pagefault.flags & UFFD_PAGEFAULT_FLAG_WRITE)
|
||||
fprintf(stderr, "unexpected write fault\n"), exit(1);
|
||||
offset = (char *)msg.arg.pagefault.address - area_dst;
|
||||
offset = (char *)(unsigned long)msg.arg.pagefault.address -
|
||||
area_dst;
|
||||
offset &= ~(page_size-1);
|
||||
if (copy_page(offset))
|
||||
(*this_cpu_userfaults)++;
|
||||
|
Reference in New Issue
Block a user