Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755073Ab3EaK5S (ORCPT ); Fri, 31 May 2013 06:57:18 -0400 Received: from us01smtp2.synopsys.com ([198.182.44.80]:52106 "EHLO kiruna.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754045Ab3EaK5N (ORCPT ); Fri, 31 May 2013 06:57:13 -0400 From: Vineet Gupta To: Andrew Morton CC: , , , Max Filippov , "Vineet Gupta" , Mel Gorman , Hugh Dickins , Rik van Riel , David Rientjes , Peter Zijlstra Subject: [PATCH 2/2] mm: tlb_fast_mode check missing in tlb_finish_mmu() Date: Fri, 31 May 2013 16:23:50 +0530 Message-ID: <1369997630-6522-3-git-send-email-vgupta@synopsys.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1369997630-6522-1-git-send-email-vgupta@synopsys.com> References: <1369997630-6522-1-git-send-email-vgupta@synopsys.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.12.197.154] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1238 Lines: 38 This removes some unused generated code for tlb_fast_mode() == true Signed-off-by: Vineet Gupta Acked-by: Peter Zijlstra Cc: Andrew Morton Cc: Mel Gorman Cc: Hugh Dickins Cc: Rik van Riel Cc: David Rientjes Cc: Peter Zijlstra Cc: linux-mm@kvack.org Cc: linux-arch@vger.kernel.org --- mm/memory.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mm/memory.c b/mm/memory.c index d9d5fd9..569ffe1 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -269,6 +269,9 @@ void tlb_finish_mmu(struct mmu_gather *tlb, unsigned long start, unsigned long e /* keep the page table cache within bounds */ check_pgt_cache(); + if (tlb_fast_mode(tlb)) + return; + for (batch = tlb->local.next; batch; batch = next) { next = batch->next; free_pages((unsigned long)batch, 0); -- 1.7.10.4 -- 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/