From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756240Ab3H3OHj (ORCPT ); Fri, 30 Aug 2013 10:07:39 -0400 Received: from mx1.redhat.com ([209.132.183.28]:18736 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754011Ab3H3OHi (ORCPT ); Fri, 30 Aug 2013 10:07:38 -0400 From: Jerome Marchand To: linux-mm@kvack.org Cc: linux-kernel@vger.kernel.org, mgorman@suse.de Subject: [PATCH] mm: compaction: update comment about zone lock in isolate_freepages_block Date: Fri, 30 Aug 2013 16:07:28 +0200 Message-Id: <1377871648-9930-1-git-send-email-jmarchan@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since commit f40d1e4 (mm: compaction: acquire the zone->lock as late as possible), isolate_freepages_block() takes the zone->lock itself. The function description however still states that the zone->lock must be held. This patch removes this outdated statement. Signed-off-by: Jerome Marchand --- mm/compaction.c | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/mm/compaction.c b/mm/compaction.c index 05ccb4c..9f9026f 100644 --- a/mm/compaction.c +++ b/mm/compaction.c @@ -235,10 +235,9 @@ static bool suitable_migration_target(struct page *page) } /* - * Isolate free pages onto a private freelist. Caller must hold zone->lock. - * If @strict is true, will abort returning 0 on any invalid PFNs or non-free - * pages inside of the pageblock (even though it may still end up isolating - * some pages). + * Isolate free pages onto a private freelist. If @strict is true, will abort + * returning 0 on any invalid PFNs or non-free pages inside of the pageblock + * (even though it may still end up isolating some pages). */ static unsigned long isolate_freepages_block(struct compact_control *cc, unsigned long blockpfn, -- 1.7.7.6