Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751971AbbFYJIp (ORCPT ); Thu, 25 Jun 2015 05:08:45 -0400 Received: from cantor2.suse.de ([195.135.220.15]:33201 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751407AbbFYJIe (ORCPT ); Thu, 25 Jun 2015 05:08:34 -0400 Message-ID: <558BC50E.3030000@suse.cz> Date: Thu, 25 Jun 2015 11:08:30 +0200 From: Vlastimil Babka User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Joonsoo Kim , Andrew Morton CC: linux-kernel@vger.kernel.org, linux-mm@kvack.org, Mel Gorman , Rik van Riel , David Rientjes , Minchan Kim Subject: Re: [RFC PATCH 03/10] mm/compaction: always update cached pfn References: <1435193121-25880-1-git-send-email-iamjoonsoo.kim@lge.com> <1435193121-25880-4-git-send-email-iamjoonsoo.kim@lge.com> In-Reply-To: <1435193121-25880-4-git-send-email-iamjoonsoo.kim@lge.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1381 Lines: 44 I can has commit log? :) On 06/25/2015 02:45 AM, Joonsoo Kim wrote: > Signed-off-by: Joonsoo Kim > --- > mm/compaction.c | 11 +++++++++++ > 1 file changed, 11 insertions(+) > > diff --git a/mm/compaction.c b/mm/compaction.c > index 9c5d43c..2d8e211 100644 > --- a/mm/compaction.c > +++ b/mm/compaction.c > @@ -510,6 +510,10 @@ isolate_fail: > if (locked) > spin_unlock_irqrestore(&cc->zone->lock, flags); > > + if (blockpfn == end_pfn && > + blockpfn > cc->zone->compact_cached_free_pfn) > + cc->zone->compact_cached_free_pfn = blockpfn; > + > update_pageblock_skip(cc, valid_page, total_isolated, > *start_pfn, end_pfn, blockpfn, false); > > @@ -811,6 +815,13 @@ isolate_success: > if (locked) > spin_unlock_irqrestore(&zone->lru_lock, flags); > > + if (low_pfn == end_pfn && cc->mode != MIGRATE_ASYNC) { > + int sync = cc->mode != MIGRATE_ASYNC; > + > + if (low_pfn > zone->compact_cached_migrate_pfn[sync]) > + zone->compact_cached_migrate_pfn[sync] = low_pfn; > + } > + > update_pageblock_skip(cc, valid_page, nr_isolated, > start_pfn, end_pfn, low_pfn, true); > > -- 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/