From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wg0-f48.google.com (mail-wg0-f48.google.com [74.125.82.48]) by kanga.kvack.org (Postfix) with ESMTP id CAA3E6B0036 for ; Fri, 4 Jul 2014 08:03:24 -0400 (EDT) Received: by mail-wg0-f48.google.com with SMTP id m15so523778wgh.31 for ; Fri, 04 Jul 2014 05:03:24 -0700 (PDT) Received: from mx2.suse.de (cantor2.suse.de. [195.135.220.15]) by mx.google.com with ESMTPS id ko6si38992803wjb.17.2014.07.04.05.03.22 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 04 Jul 2014 05:03:22 -0700 (PDT) Message-ID: <53B697FE.1040405@suse.cz> Date: Fri, 04 Jul 2014 14:03:10 +0200 From: Vlastimil Babka MIME-Version: 1.0 Subject: Re: [PATCH 01/10] mm/page_alloc: remove unlikely macro on free_one_page() References: <1404460675-24456-1-git-send-email-iamjoonsoo.kim@lge.com> <1404460675-24456-2-git-send-email-iamjoonsoo.kim@lge.com> In-Reply-To: <1404460675-24456-2-git-send-email-iamjoonsoo.kim@lge.com> Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: Joonsoo Kim , Andrew Morton Cc: "Kirill A. Shutemov" , Rik van Riel , Peter Zijlstra , Mel Gorman , Johannes Weiner , Minchan Kim , Yasuaki Ishimatsu , Zhang Yanfei , "Srivatsa S. Bhat" , Tang Chen , Naoya Horiguchi , Bartlomiej Zolnierkiewicz , Wen Congyang , Marek Szyprowski , Michal Nazarewicz , Laura Abbott , Heesub Shin , "Aneesh Kumar K.V" , Ritesh Harjani , t.stanislaws@samsung.com, Gioh Kim , linux-mm@kvack.org, linux-kernel@vger.kernel.org On 07/04/2014 09:57 AM, Joonsoo Kim wrote: > Isolation is really rare case so !is_migrate_isolate() is > likely case. Remove unlikely macro. Good catch. Why not replace it with likely then? Any difference in the assembly? > Signed-off-by: Joonsoo Kim > --- > 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 8dac0f0..0d4cf7a 100644 > --- a/mm/page_alloc.c > +++ b/mm/page_alloc.c > @@ -735,7 +735,7 @@ static void free_one_page(struct zone *zone, > zone->pages_scanned = 0; > > __free_one_page(page, pfn, zone, order, migratetype); > - if (unlikely(!is_migrate_isolate(migratetype))) > + if (!is_migrate_isolate(migratetype)) > __mod_zone_freepage_state(zone, 1 << order, migratetype); > spin_unlock(&zone->lock); > } > -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org