From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 83D05C282C4 for ; Mon, 4 Feb 2019 16:54:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 496BD217D9 for ; Mon, 4 Feb 2019 16:54:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1549299275; bh=mCtq5dMQ6nOb52DNvCbspl9SnCOU3uJ5ZUIThS1jg0Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=wLyPrcqNyLwhs1UqCoPmwBlBf0aVtq7XkWA3jmFPIFtANeshvETYuCVbforiPVW2+ ZdVnZAmZnjVNTmrWGglkfizQbrNfyxulsnnSL3sKtcKuQdXE9oxY/y26OYSeEynFL/ ifSJSUSYJdEYWs9mdMF5uEHVhr1pnBTQHPTWdjfA= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728026AbfBDQye (ORCPT ); Mon, 4 Feb 2019 11:54:34 -0500 Received: from mail.kernel.org ([198.145.29.99]:37880 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727308AbfBDQye (ORCPT ); Mon, 4 Feb 2019 11:54:34 -0500 Received: from garbanzo.lan (c-73-71-40-85.hsd1.ca.comcast.net [73.71.40.85]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A8AD4214DA; Mon, 4 Feb 2019 16:54:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1549299274; bh=mCtq5dMQ6nOb52DNvCbspl9SnCOU3uJ5ZUIThS1jg0Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=v4XpFUG0Gipgo/nrsd0c4oP/inoMzFNnXoKCdqSgI2YbXEE6M3XAoATDY23xjKV9K dxJs3EzyYCQ0u99HFW8aNeKhZ0eB7pjtbsehmf8oQxOU5eRL4qbu2ouoBJU7rWpyUg BRhb0V9BrEfuHEGIxi0/CsvLv5mmJ+7K377kSAaw= From: Luis Chamberlain To: linux-xfs@vger.kernel.org, gregkh@linuxfoundation.org, Alexander.Levin@microsoft.com Cc: stable@vger.kernel.org, amir73il@gmail.com, hch@infradead.org, Carlos Maiolino , Dave Chinner , Luis Chamberlain Subject: [PATCH v2 01/10] xfs: Fix xqmstats offsets in /proc/fs/xfs/xqmstat Date: Mon, 4 Feb 2019 08:54:18 -0800 Message-Id: <20190204165427.23607-2-mcgrof@kernel.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20190204165427.23607-1-mcgrof@kernel.org> References: <20190204165427.23607-1-mcgrof@kernel.org> Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Carlos Maiolino commit 41657e5507b13e963be906d5d874f4f02374fd5c upstream. The addition of FIBT, RMAP and REFCOUNT changed the offsets into __xfssats structure. This caused xqmstat_proc_show() to display garbage data via /proc/fs/xfs/xqmstat, once it relies on the offsets marked via macros. Fix it. Fixes: 00f4e4f9 xfs: add rmap btree stats infrastructure Fixes: aafc3c24 xfs: support the XFS_BTNUM_FINOBT free inode btree type Fixes: 46eeb521 xfs: introduce refcount btree definitions Signed-off-by: Carlos Maiolino Reviewed-by: Eric Sandeen Signed-off-by: Dave Chinner Signed-off-by: Luis Chamberlain --- 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 4e4423153071..740ac9674848 100644 --- a/fs/xfs/xfs_stats.c +++ b/fs/xfs/xfs_stats.c @@ -119,7 +119,7 @@ static int xqmstat_proc_show(struct seq_file *m, void *v) int j; seq_printf(m, "qm"); - for (j = XFSSTAT_END_IBT_V2; j < XFSSTAT_END_XQMSTAT; j++) + for (j = XFSSTAT_END_REFCOUNT; j < XFSSTAT_END_XQMSTAT; j++) seq_printf(m, " %u", counter_val(xfsstats.xs_stats, j)); seq_putc(m, '\n'); return 0; -- 2.18.0