lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1465754611-21398-1-git-send-email-masanori.yoshida.lkml@gmail.com>
Date:	Mon, 13 Jun 2016 03:03:31 +0900
From:	YOSHIDA Masanori <masanori.yoshida.lkml@...il.com>
To:	linux-kernel@...r.kernel.org
Cc:	akpm@...ux-foundation.org, mgorman@...hsingularity.net,
	vbabka@...e.cz, mhocko@...e.com, rientjes@...gle.com,
	iamjoonsoo.kim@....com, izumi.taku@...fujitsu.com,
	hannes@...xchg.org, linux-mm@...ck.org,
	YOSHIDA Masanori <masanori.yoshida@...il.com>
Subject: [PATCH] Delete meaningless check of current_order in __rmqueue_fallback

From: YOSHIDA Masanori <masanori.yoshida@...il.com>

Signed-off-by: YOSHIDA Masanori <masanori.yoshida@...il.com>
---
 mm/page_alloc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index 6903b69..db02967 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -2105,7 +2105,7 @@ __rmqueue_fallback(struct zone *zone, unsigned int order, int start_migratetype)
 
 	/* Find the largest possible block of pages in the other list */
 	for (current_order = MAX_ORDER-1;
-				current_order >= order && current_order <= MAX_ORDER-1;
+				current_order >= order;
 				--current_order) {
 		area = &(zone->free_area[current_order]);
 		fallback_mt = find_suitable_fallback(area, current_order,
-- 
2.1.4

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ