From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1947827AbdDYOBE (ORCPT ); Tue, 25 Apr 2017 10:01:04 -0400 Received: from mx1.redhat.com ([209.132.183.28]:57638 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1947780AbdDYOAc (ORCPT ); Tue, 25 Apr 2017 10:00:32 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 54DAA8049C Authentication-Results: ext-mx04.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx04.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=mtosatti@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 54DAA8049C Message-Id: <20170425135843.636700422@redhat.com> User-Agent: quilt/0.60-1 Date: Tue, 25 Apr 2017 10:57:18 -0300 From: Marcelo Tosatti To: linux-kernel@vger.kernel.org, linux-mm@kvack.org Cc: Luiz Capitulino , Rik van Riel , Linux RT Users , Marcelo Tosatti Subject: [patch 1/2] MM: remove unused quiet_vmstat function References: <20170425135717.375295031@redhat.com> Content-Disposition: inline; filename=remove-vmstat-quiet X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Tue, 25 Apr 2017 14:00:26 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove unused quiet_vmstat function. Signed-off-by: Marcelo Tosatti --- include/linux/vmstat.h | 1 - mm/vmstat.c | 25 ------------------------- 2 files changed, 26 deletions(-) Index: linux-2.6-git-disable-vmstat-worker/include/linux/vmstat.h =================================================================== --- linux-2.6-git-disable-vmstat-worker.orig/include/linux/vmstat.h 2017-04-24 18:52:42.957724687 -0300 +++ linux-2.6-git-disable-vmstat-worker/include/linux/vmstat.h 2017-04-24 18:53:15.086793496 -0300 @@ -233,7 +233,6 @@ extern void __dec_zone_state(struct zone *, enum zone_stat_item); extern void __dec_node_state(struct pglist_data *, enum node_stat_item); -void quiet_vmstat(void); void cpu_vm_stats_fold(int cpu); void refresh_zone_stat_thresholds(void); Index: linux-2.6-git-disable-vmstat-worker/mm/vmstat.c =================================================================== --- linux-2.6-git-disable-vmstat-worker.orig/mm/vmstat.c 2017-04-24 18:52:42.957724687 -0300 +++ linux-2.6-git-disable-vmstat-worker/mm/vmstat.c 2017-04-24 18:53:53.075874785 -0300 @@ -1657,31 +1657,6 @@ } /* - * Switch off vmstat processing and then fold all the remaining differentials - * until the diffs stay at zero. The function is used by NOHZ and can only be - * invoked when tick processing is not active. - */ -void quiet_vmstat(void) -{ - if (system_state != SYSTEM_RUNNING) - return; - - if (!delayed_work_pending(this_cpu_ptr(&vmstat_work))) - return; - - if (!need_update(smp_processor_id())) - return; - - /* - * Just refresh counters and do not care about the pending delayed - * vmstat_update. It doesn't fire that often to matter and canceling - * it would be too expensive from this path. - * vmstat_shepherd will take care about that for us. - */ - refresh_cpu_vm_stats(false); -} - -/* * Shepherd worker thread that checks the * differentials of processors that have their worker * threads for vm statistics updates disabled because of