The patch titled Subject: tools-adding-support-for-idle-page-tracking-to-tool-fix has been removed from the -mm tree. Its filename was tools-adding-support-for-idle-page-tracking-to-tool-fix.patch This patch was dropped because it was folded into tools-adding-support-for-idle-page-tracking-to-tool.patch ------------------------------------------------------ From: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> Subject: tools-adding-support-for-idle-page-tracking-to-tool-fix simplify mark_page_idle() Cc: Christian Hansen <chansen3@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- tools/vm/page-types.c | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) --- a/tools/vm/page-types.c~tools-adding-support-for-idle-page-tracking-to-tool-fix +++ a/tools/vm/page-types.c @@ -597,21 +597,15 @@ static int mark_page_idle(unsigned long static uint64_t buf; int len; - if ((offset / 64 == off / 64) || buf == 0) { - buf |= 1UL << (offset % 64); - off = offset; - return 0; + if ((offset / 64 != off / 64) && buf != 0) { + len = pwrite(page_idle_fd, &buf, 8, 8 * (off / 64)); + if (len < 0) { + perror("mark page idle"); + return len; + } } - - len = pwrite(page_idle_fd, &buf, 8, 8 * (off / 64)); - if (len < 0) { - perror("mark page idle"); - return len; - } - buf = 1UL << (offset % 64); off = offset; - return 0; } _ Patches currently in -mm which might be from akpm@xxxxxxxxxxxxxxxxxxxx are tools-adding-support-for-idle-page-tracking-to-tool.patch mpage-add-argument-structure-for-do_mpage_readpage-checkpatch-fixes.patch mm-drop-vm_bug_on-from-__get_free_pages-fix.patch mm-list_lruc-fold-__list_lru_count_one-into-its-caller.patch mm-fadvise-fix-signed-overflow-ubsan-complaint-fix.patch mm-sparsemem-defer-the-ms-section_mem_map-clearing-fix.patch mm-sparse-optimize-memmap-allocation-during-sparse_init-checkpatch-fixes.patch mm-sparse-abstract-sparse-buffer-allocations-fix.patch mm-sparse-abstract-sparse-buffer-allocations-fix-fix.patch