From nobody Sun Dec 28 22:55:57 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CCE1AC4167B for ; Mon, 4 Dec 2023 07:30:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234599AbjLDH37 (ORCPT ); Mon, 4 Dec 2023 02:29:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229693AbjLDH35 (ORCPT ); Mon, 4 Dec 2023 02:29:57 -0500 X-Greylist: delayed 182 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Sun, 03 Dec 2023 23:30:00 PST Received: from mx10.didiglobal.com (mx10.didiglobal.com [111.202.70.125]) by lindbergh.monkeyblade.net (Postfix) with SMTP id 3CB87F2; Sun, 3 Dec 2023 23:30:00 -0800 (PST) Received: from mail.didiglobal.com (unknown [10.79.71.32]) by mx10.didiglobal.com (MailData Gateway V2.8.8) with ESMTPS id 37F07184D80420; Mon, 4 Dec 2023 15:26:56 +0800 (CST) Received: from localhost.localdomain (10.79.64.101) by ZJY03-ACTMBX-03.didichuxing.com (10.79.71.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.32; Mon, 4 Dec 2023 15:26:55 +0800 X-MD-Sfrom: daikunhai@didiglobal.com X-MD-SrcIP: 10.79.71.32 From: Kunhai Dai To: , CC: , , Kunhai Dai Subject: [PATCH] xfs: adjust the offset of the log statistics line Date: Mon, 4 Dec 2023 02:26:44 -0500 Message-ID: <20231204072644.1012309-1-daikunhai@didiglobal.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [10.79.64.101] X-ClientProxiedBy: ZJY03-PUBMBX-01.didichuxing.com (10.79.71.12) To ZJY03-ACTMBX-03.didichuxing.com (10.79.71.32) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" It would be more preferable to present xs_try_logspace and xs_sleep_logspace on the log line. Signed-off-by: Kunhai Dai --- fs/xfs/xfs_stats.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/xfs/xfs_stats.c b/fs/xfs/xfs_stats.c index 90a77cd3ebad..92ff3a22cbc9 100644 --- a/fs/xfs/xfs_stats.c +++ b/fs/xfs/xfs_stats.c @@ -36,7 +36,7 @@ int xfs_stats_format(struct xfsstats __percpu *stats, cha= r *buf) { "dir", xfsstats_offset(xs_trans_sync) }, { "trans", xfsstats_offset(xs_ig_attempts) }, { "ig", xfsstats_offset(xs_log_writes) }, - { "log", xfsstats_offset(xs_try_logspace)}, + { "log", xfsstats_offset(xs_push_ail)}, { "push_ail", xfsstats_offset(xs_xstrat_quick)}, { "xstrat", xfsstats_offset(xs_write_calls) }, { "rw", xfsstats_offset(xs_attr_get) }, --=20 2.27.0