Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754308AbbKJQFS (ORCPT ); Tue, 10 Nov 2015 11:05:18 -0500 Received: from mail-wm0-f44.google.com ([74.125.82.44]:35906 "EHLO mail-wm0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752677AbbKJQFP convert rfc822-to-8bit (ORCPT ); Tue, 10 Nov 2015 11:05:15 -0500 From: Michal Nazarewicz To: Joonsoo Kim , Andrew Morton Cc: Minchan Kim , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Joonsoo Kim Subject: Re: [PATCH 1/3] mm/page_isolation: return last tested pfn rather than failure indicator In-Reply-To: <1447053861-28824-1-git-send-email-iamjoonsoo.kim@lge.com> Organization: http://mina86.com/ References: <1447053861-28824-1-git-send-email-iamjoonsoo.kim@lge.com> User-Agent: Notmuch/0.19+53~g2e63a09 (http://notmuchmail.org) Emacs/25.0.50.1 (x86_64-unknown-linux-gnu) X-Face: PbkBB1w#)bOqd`iCe"Ds{e+!C7`pkC9a|f)Qo^BMQvy\q5x3?vDQJeN(DS?|-^$uMti[3D*#^_Ts"pU$jBQLq~Ud6iNwAw_r_o_4]|JO?]}P_}Nc&"p#D(ZgUb4uCNPe7~a[DbPG0T~!&c.y$Ur,=N4RT>]dNpd;KFrfMCylc}gc??'U2j,!8%xdD Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAJFBMVEWbfGlUPDDHgE57V0jUupKjgIObY0PLrom9mH4dFRK4gmjPs41MxjOgAAACQElEQVQ4jW3TMWvbQBQHcBk1xE6WyALX1069oZBMlq+ouUwpEQQ6uRjttkWP4CmBgGM0BQLBdPFZYPsyFUo6uEtKDQ7oy/U96XR2Ux8ehH/89Z6enqxBcS7Lg81jmSuujrfCZcLI/TYYvbGj+jbgFpHJ/bqQAUISj8iLyu4LuFHJTosxsucO4jSDNE0Hq3hwK/ceQ5sx97b8LcUDsILfk+ovHkOIsMbBfg43VuQ5Ln9YAGCkUdKJoXR9EclFBhixy3EGVz1K6eEkhxCAkeMMnqoAhAKwhoUJkDrCqvbecaYINlFKSRS1i12VKH1XpUd4qxL876EkMcDvHj3s5RBajHHMlA5iK32e0C7VgG0RlzFPvoYHZLRmAC0BmNcBruhkE0KsMsbEc62ZwUJDxWUdMsMhVqovoT96i/DnX/ASvz/6hbCabELLk/6FF/8PNpPCGqcZTGFcBhhAaZZDbQPaAB3+KrWWy2XgbYDNIinkdWAFcCpraDE/knwe5DBqGmgzESl1p2E4MWAz0VUPgYYzmfWb9yS4vCvgsxJriNTHoIBz5YteBvg+VGISQWUqhMiByPIPpygeDBE6elD973xWwKkEiHZAHKjhuPsFnBuArrzxtakRcISv+XMIPl4aGBUJm8Emk7qBYU8IlgNEIpiJhk/No24jHwkKTFHDWfPniR4iw5vJaw2nzSjfq2zffcE/GDjRC2dn0J0XwPAbDL84TvaFCJEU4Oml9pRyEUhR3Cl2t01AoEjRbs0sYugp14/4X5n4pU4EHHnMAAAAAElFTkSuQmCC X-PGP: 50751FF4 X-PGP-FP: AC1F 5F5C D418 88F8 CC84 5858 2060 4012 5075 1FF4 X-Hashcash: 1:20:151110:linux-mm@kvack.org::JTOUC0s/RdWY0BEP:000000000000000000000000000000000000000000002cD X-Hashcash: 1:20:151110:js1304@gmail.com::3gQJIQqu/b8/fkh5:03Mv7 X-Hashcash: 1:20:151110:linux-kernel@vger.kernel.org::n6l1/6tOGM0KE3dA:0000000000000000000000000000000004i3a X-Hashcash: 1:20:151110:iamjoonsoo.kim@lge.com::z2GKcu6lquGeFbZp:0000000000000000000000000000000000000004c9e X-Hashcash: 1:20:151110:minchan@kernel.org::Aj94p6i9Pm/hql9q:00000000000000000000000000000000000000000008O0V X-Hashcash: 1:20:151110:akpm@linux-foundation.org::erKnUOaaYwjqQq5k:0000000000000000000000000000000000007EIS Date: Tue, 10 Nov 2015 17:05:12 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1581 Lines: 41 On Mon, Nov 09 2015, Joonsoo Kim wrote: > This is preparation step to report test failed pfn in new tracepoint > to analyze cma allocation failure problem. There is no functional change > in this patch. > > Signed-off-by: Joonsoo Kim Acked-by: Michal Nazarewicz > --- > mm/page_isolation.c | 13 ++++++------- > 1 file changed, 6 insertions(+), 7 deletions(-) > > @@ -266,10 +264,11 @@ int test_pages_isolated(unsigned long start_pfn, unsigned long end_pfn, > /* Check all pages are free or marked as ISOLATED */ > zone = page_zone(page); > spin_lock_irqsave(&zone->lock, flags); > - ret = __test_page_isolated_in_pageblock(start_pfn, end_pfn, > + pfn = __test_page_isolated_in_pageblock(start_pfn, end_pfn, > skip_hwpoisoned_pages); > spin_unlock_irqrestore(&zone->lock, flags); > - return ret ? 0 : -EBUSY; > + > + return (pfn < end_pfn) ? -EBUSY : 0; Parens aren’t necessary. No strong feelings. > } > > struct page *alloc_migrate_target(struct page *page, unsigned long private, -- Best regards, _ _ .o. | Liege of Serenely Enlightened Majesty of o' \,=./ `o ..o | Computer Science, ミハウ “mina86” ナザレヴイツ (o o) ooo +---------ooO--(_)--Ooo-- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/