[folded-merged] mm-page_owner-clamp-read-count-to-page_size-fix.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     Subject: mm-page_owner-clamp-read-count-to-page_size-fix
has been removed from the -mm tree.  Its filename was
     mm-page_owner-clamp-read-count-to-page_size-fix.patch

This patch was dropped because it was folded into mm-page_owner-clamp-read-count-to-page_size.patch

------------------------------------------------------
From: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
Subject: mm-page_owner-clamp-read-count-to-page_size-fix

use min_t()

Cc: Joe Perches <joe@xxxxxxxxxxx>
Cc: Matthew Wilcox <willy@xxxxxxxxxxxxx>
Cc: Michal Hocko <mhocko@xxxxxxxx>
Cc: Miles Chen <miles.chen@xxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 mm/page_owner.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/mm/page_owner.c~mm-page_owner-clamp-read-count-to-page_size-fix
+++ a/mm/page_owner.c
@@ -351,7 +351,7 @@ print_page_owner(char __user *buf, size_
 		.skip = 0
 	};
 
-	count = count > PAGE_SIZE ? PAGE_SIZE : count;
+	count = min_t(size_t, count, PAGE_SIZE);
 	kbuf = kmalloc(count, GFP_KERNEL);
 	if (!kbuf)
 		return -ENOMEM;
_

Patches currently in -mm which might be from akpm@xxxxxxxxxxxxxxxxxxxx are

mm-page_owner-clamp-read-count-to-page_size.patch
mm-hotplug-optimize-clear_hwpoisoned_pages-fix.patch
mm-lower-the-printk-loglevel-for-__dump_page-messages-fix-fix.patch
mm-memory_hotplug-print-reason-for-the-offlining-failure-fix.patch
mm-memory_hotplug-be-more-verbose-for-memory-offline-failures-fix.patch
mm-convert-totalram_pages-and-totalhigh_pages-variables-to-atomic-checkpatch-fixes.patch
mm-page_alloc-free-order-0-pages-through-pcp-in-page_frag_free-fix.patch
mm-dont-break-integrity-writeback-on-writepage-error-fix.patch
mm-kmemleak-little-optimization-while-scanning-fix.patch
mm-mmu_notifier-use-structure-for-invalidate_range_start-end-callback-fix-fix.patch
mm-mmu_notifier-use-structure-for-invalidate_range_start-end-calls-v2-checkpatch-fixes.patch
mm-memory_hotplug-deobfuscate-migration-part-of-offlining-fix.patch
mm-page_alloc-enable-pcpu_drain-with-zone-capability-fix.patch
mm-migrate-provide-buffer_migrate_page_norefs-fix.patch




[Index of Archives]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux