Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3087503pxb; Mon, 18 Oct 2021 08:01:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy5lUmWD5pEvllBN0krDedUg+vy3vadal+dlVp8lmf3/ZLlnrxnDzzszfRvqv5hTpcWHYb3 X-Received: by 2002:a05:6a00:1c42:b0:44d:2e14:74b7 with SMTP id s2-20020a056a001c4200b0044d2e1474b7mr29594081pfw.25.1634569279998; Mon, 18 Oct 2021 08:01:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634569279; cv=none; d=google.com; s=arc-20160816; b=mmxFFbyI+5QnbrEPvQ6hALtz1hPEao2F2Irx7nfXlRd5PkZGm0NqXcqlvDOD6zoeqy 44zEUDdMbu0mJ0K2w4UrNF7rwJe0Giqgbo/CcNP5R7+HiBnGcHA6B26QKen9GNruNHYI wkUWLom2G53ESdxBU/NlpAsjXrW7l2C+rcw04wz6j6KJDqOueE/JlF0E6x9P1MeurdHi 3l4R7hJFIE9euaOn+NO4zfjREDH6n69WTedW1aQOPEn6yCykK7TLklP+h3v0jN9DDdy2 SeefQPTXG0rpEU0QgjLTxm2iDx8614bx/HxGkKyh0xlOdFk8unLrnCg5xABlw/7PQFIv N2aA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:cc:to:from :subject:organization:dkim-signature; bh=0rLWjOac2bldltPLSIvO7t4xwzOfczTlvO1pL5kPDYk=; b=JSLWZ7shiNaP3nAex6UIsAJt6GK19vQM/IJ5f/WAItDSoIr4nE+16DbouIOXDSwPxH qiG0Nj1ktrX4Nsr9hGcKRP8gULrVKEdoDKIOE3Mjqik169Wrtij98/MyuboLWP6MJ3Ez dx+5rjd2ArUxu/zCsOhF/zbY+2Rl3bDt0go4K6SrWH3jh4RcNXvSSJra5dxe93NEO/YH mn7r0c1k9H2wozj68vDJ5KHO+oJP6pchNkqsmQBlRtQ2KKCi+Y/FLOCNWy36yvvAsUI1 9Dr2vsYsC9/lkBn+y+XtqNQx/9u2G5vU2Br1vvr0U1RjVhKsLeh8xDUiC5FXy4kTcNiF DSUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=SKrVYEoW; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ij16si21426558plb.195.2021.10.18.08.00.49; Mon, 18 Oct 2021 08:01:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=SKrVYEoW; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233236AbhJRPC4 (ORCPT + 99 others); Mon, 18 Oct 2021 11:02:56 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:56588 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233260AbhJRPCu (ORCPT ); Mon, 18 Oct 2021 11:02:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1634569239; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=0rLWjOac2bldltPLSIvO7t4xwzOfczTlvO1pL5kPDYk=; b=SKrVYEoW7jqVtgq9DzP7+kjkT0//GzU763qmdnFEINCtr58oMH+LabGTKm7t50hsWFzWUy 1M181aqtdiqJACWPQyAbW+/cBe2rX2ZD+RJvRDS0aklJrBCsl0GqDvKOnVvZHubfoQDx29 tGF1rvis1I7BMEqEgj5IoLI0JmRc0n8= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-272-hJFmt2ErMya7D3FK-BzwiQ-1; Mon, 18 Oct 2021 11:00:35 -0400 X-MC-Unique: hJFmt2ErMya7D3FK-BzwiQ-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id B317180DDE1; Mon, 18 Oct 2021 15:00:32 +0000 (UTC) Received: from warthog.procyon.org.uk (unknown [10.33.36.19]) by smtp.corp.redhat.com (Postfix) with ESMTP id A878A60D30; Mon, 18 Oct 2021 15:00:29 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 Subject: [PATCH 38/67] fscache: Remove more obsolete stats From: David Howells To: linux-cachefs@redhat.com Cc: dhowells@redhat.com, Trond Myklebust , Anna Schumaker , Steve French , Dominique Martinet , Jeff Layton , Matthew Wilcox , Alexander Viro , Omar Sandoval , Linus Torvalds , linux-afs@lists.infradead.org, linux-nfs@vger.kernel.org, linux-cifs@vger.kernel.org, ceph-devel@vger.kernel.org, v9fs-developer@lists.sourceforge.net, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Date: Mon, 18 Oct 2021 16:00:28 +0100 Message-ID: <163456922892.2614702.12945425715751699836.stgit@warthog.procyon.org.uk> In-Reply-To: <163456861570.2614702.14754548462706508617.stgit@warthog.procyon.org.uk> References: <163456861570.2614702.14754548462706508617.stgit@warthog.procyon.org.uk> User-Agent: StGit/0.23 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Remove some more stats that have become obsolete. Signed-off-by: David Howells --- fs/fscache/internal.h | 3 --- fs/fscache/stats.c | 13 +++---------- 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/fs/fscache/internal.h b/fs/fscache/internal.h index 1cb1effa7cba..65fb4e88f655 100644 --- a/fs/fscache/internal.h +++ b/fs/fscache/internal.h @@ -101,14 +101,11 @@ extern atomic_t fscache_n_acquires; extern atomic_t fscache_n_acquires_null; extern atomic_t fscache_n_acquires_no_cache; extern atomic_t fscache_n_acquires_ok; -extern atomic_t fscache_n_acquires_nobufs; extern atomic_t fscache_n_acquires_oom; extern atomic_t fscache_n_invalidates; -extern atomic_t fscache_n_invalidates_run; extern atomic_t fscache_n_relinquishes; -extern atomic_t fscache_n_relinquishes_null; extern atomic_t fscache_n_relinquishes_retire; extern atomic_t fscache_n_relinquishes_dropped; diff --git a/fs/fscache/stats.c b/fs/fscache/stats.c index a16473df8be0..44b3b901e191 100644 --- a/fs/fscache/stats.c +++ b/fs/fscache/stats.c @@ -6,7 +6,6 @@ */ #define FSCACHE_DEBUG_LEVEL CACHE -#include #include #include #include "internal.h" @@ -48,17 +47,14 @@ atomic_t fscache_n_acquires; atomic_t fscache_n_acquires_null; atomic_t fscache_n_acquires_no_cache; atomic_t fscache_n_acquires_ok; -atomic_t fscache_n_acquires_nobufs; atomic_t fscache_n_acquires_oom; atomic_t fscache_n_invalidates; -atomic_t fscache_n_invalidates_run; atomic_t fscache_n_updates; EXPORT_SYMBOL(fscache_n_updates); atomic_t fscache_n_relinquishes; -atomic_t fscache_n_relinquishes_null; atomic_t fscache_n_relinquishes_retire; atomic_t fscache_n_relinquishes_dropped; @@ -83,13 +79,11 @@ int fscache_stats_show(struct seq_file *m, void *v) atomic_read(&fscache_n_volumes_nomem) ); - seq_printf(m, "Acquire: n=%u nul=%u noc=%u ok=%u nbf=%u" - " oom=%u\n", + seq_printf(m, "Acquire: n=%u nul=%u noc=%u ok=%u oom=%u\n", atomic_read(&fscache_n_acquires), atomic_read(&fscache_n_acquires_null), atomic_read(&fscache_n_acquires_no_cache), atomic_read(&fscache_n_acquires_ok), - atomic_read(&fscache_n_acquires_nobufs), atomic_read(&fscache_n_acquires_oom)); seq_printf(m, "LRU : n=%u exp=%u rmv=%u drp=%u at=%ld\n", @@ -100,9 +94,8 @@ int fscache_stats_show(struct seq_file *m, void *v) timer_pending(&fscache_cookie_lru_timer) ? fscache_cookie_lru_timer.expires - jiffies : 0); - seq_printf(m, "Invals : n=%u run=%u\n", - atomic_read(&fscache_n_invalidates), - atomic_read(&fscache_n_invalidates_run)); + seq_printf(m, "Invals : n=%u\n", + atomic_read(&fscache_n_invalidates)); seq_printf(m, "Updates: n=%u\n", atomic_read(&fscache_n_updates));