From patchwork Mon Feb 13 14:18:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 56307 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2375877wrn; Mon, 13 Feb 2023 06:29:45 -0800 (PST) X-Google-Smtp-Source: AK7set+Oxs8rqRNXD6a8zrwpHBWC8oTKjeNhG+jLnhsNMIHAvHEjmmL4TwtA+lowWj+I5pARjbjb X-Received: by 2002:a17:907:8810:b0:8a9:e031:c4ae with SMTP id ro16-20020a170907881000b008a9e031c4aemr26568746ejc.2.1676298585021; Mon, 13 Feb 2023 06:29:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1676298585; cv=pass; d=google.com; s=arc-20160816; b=TKIk2fxSZTXAsnyJPsAOIVk5XoxMnMtf/2sN63V00BvZse3sxzAfSTVsBfGMvdaa3f cEPuZL5RJIaOyLpchW5vtKm29xeVkdsvrLfTrKFBlc9X1Z8B79QSqSBvcFrNz1BiJ8hV NI9wkb2c3BxULcnowRQQI1CvJlEmSaYbyNHio/BPggeBtsfjLm75L3EWIyowngQbt2Fo yspPa7UMdhbjhIQxkJYsub+cEzCJnywOuoRzLRGJcY0K56CXUAU+vEKfReybpJX0Bjro syg+F8buDRo48RIkErsmLm/8lB39taSfbmFWPcWh7zWSpIrQPFrxPUGex/IQzR/0twyt ccTw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=JlCxayYuiOOj+jFvI1Rm47GeEAecPD8aHPepanFpsSg=; b=AxW08FaGGx3r9zOmgvQ0fKT/ajncDzkD5BP00rrBmityKmxNKcyokMmuoGZ2Ea07P/ KjllnkrbtO8EUyfA7vDLodktUaa4uGGHSB93l7SJq4XD6u3dnKHCxQh7nGApoZyYshjK Fo/qEQbegZdDEA6x0xlvOztoUV+dX1ZWO7P88lHPGqE8fTo15ifLZMjaiOGA1eUvtmdp wtP4wnWikOFm5dtxaTfdknHESYNCExU553kwfHpyc8R2+oAgQEiKFI4+a92fZ84va/ap APH1RuTts5b/iZaK6oVMHDLRO0s2wjCLmBLZE4PvX0ONUuF5PGXnXVwJtlwoeNGH7P/c zk0w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=ONlaUJj3; arc=pass (i=1 spf=pass spfdomain=vivo.com dkim=pass dkdomain=vivo.com dmarc=pass fromdomain=vivo.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=vivo.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ex3-20020a170907954300b0085738d104fcsi14449750ejc.213.2023.02.13.06.29.21; Mon, 13 Feb 2023 06:29:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=ONlaUJj3; arc=pass (i=1 spf=pass spfdomain=vivo.com dkim=pass dkdomain=vivo.com dmarc=pass fromdomain=vivo.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=vivo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229729AbjBMOS6 (ORCPT + 99 others); Mon, 13 Feb 2023 09:18:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229743AbjBMOSw (ORCPT ); Mon, 13 Feb 2023 09:18:52 -0500 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2102.outbound.protection.outlook.com [40.107.255.102]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C7C615577 for ; Mon, 13 Feb 2023 06:18:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=av6XFshqj9p5zg8pVZpi6JurJfolFevBz4/MOYUmWGbLjHcXgNTnF/C8KLl9fSyfgudZYOJZLe6lnuYQMo2XpWgJdMB9Vj1Z8p4oB9QU4nRFgmQy07A9CgZv/zEsYOM8uKd6W/5lNrb6i421SQ25mL8nH1dJy2TEd2EyU/lRPQV/blxBRAaY64lVSzBA4KdC5dTLox6lSI5cRiRTU/WUxz7pcy8C9VkQKN3VEZkN34BjGRXXNpPFLxI0qSm/HQ7JO7jBgqR5f2nAQSr6JKz0lxud52WokbQzo3wweVcaePChk9r2nYXWO3NlQLp6tvVTc4wlCWH7UMshTgVVusi8UQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=JlCxayYuiOOj+jFvI1Rm47GeEAecPD8aHPepanFpsSg=; b=hbRFiKB295n61ZoDP+B3lwoSy4xXKpCU2t8+TJb5h+rC6bCDUPtTKyPoMHsxyvKrESNxGivflieXxAeEf+AOjXtjCUmKsTS7IHAg5zj+xhtWMVCZN19XBGuYLqx2YvJdkZBMT7vZsSZQAfapgI85ljBdJh+qet0Kzc9apDA8klzqDtcHkFKLgvr22HIszUGqhlRgnNPWJWYCa+30r6GzFeF8pMZ/8+/G7xnkBHWs1zGHbpMxg7zZqq0UzsF3qn7J/vZ6LjH/L9XEdUAdRoiy2+7wgocd2axu9j6YyWmXr8JbGsovtUtnlP16DpElqt4S5SInOsXITCwduTvIvQT57w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vivo.com; dmarc=pass action=none header.from=vivo.com; dkim=pass header.d=vivo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vivo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=JlCxayYuiOOj+jFvI1Rm47GeEAecPD8aHPepanFpsSg=; b=ONlaUJj3WbARRbPWql8HXHEcBle77/X5b64W6NnqxpHWpKYS3NdmTNxBzdXGQZVb6ZS3TV7YG7EPzWSsxR6gd8Qwc91UdF48Va0IMYQW1HVGop/nW8Txtqca6o29/Xke8TUUB49iP+0hit5nbksvjOEKynLjA/tSzwEQnaVaqMkXrkgOp9jEGWQI6bsAvQZKJirLbe3Oy1oRB2jI5V4s0AoKCI8IgDPsn1uPv/buc/FEfWP/tTDdOPAIEFmGcjXzWZ+FJCXiiUjArHqFZ1JNDr0ktQzdxis63YCRHTR4Y7kf5t08SqDvaRpva5ictSk++4f2rRNf5DX0iSPBY7xRDw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vivo.com; Received: from SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) by SI2PR06MB4233.apcprd06.prod.outlook.com (2603:1096:4:156::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6111.10; Mon, 13 Feb 2023 14:18:43 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::daf6:5ebb:a93f:1869]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::daf6:5ebb:a93f:1869%9]) with mapi id 15.20.6111.010; Mon, 13 Feb 2023 14:18:43 +0000 From: Yangtao Li To: jaegeuk@kernel.org, chao@kernel.org Cc: linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, Yangtao Li Subject: [PATCH v3 2/2] f2fs: replace si->sbi w/ sbi in stat_show() Date: Mon, 13 Feb 2023 22:18:25 +0800 Message-Id: <20230213141825.22858-2-frank.li@vivo.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230213141825.22858-1-frank.li@vivo.com> References: <20230213141825.22858-1-frank.li@vivo.com> X-ClientProxiedBy: SG2PR01CA0112.apcprd01.prod.exchangelabs.com (2603:1096:4:40::16) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|SI2PR06MB4233:EE_ X-MS-Office365-Filtering-Correlation-Id: 012688d4-8801-4d34-636e-08db0dcd360b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: SWjheXt7NZ2udZ1TmnOQma//jlBto7dooJlipqGu/fJfxCJ3c6n8f6e7gdjVx9HEy+p1cxEEcjdg5y/vYPQ6yPXfwtTjRipBUgTN3gW19VMkx7Xm+zMQP3N7yjxvppUTXq8JPtpE90ZN10yLk5DF25UwmOhMfED8ydjBXpq6CNN+s5B9ntGi7gkMG8rIdJ2ivBdwJhl0JwUFkTrAiTxk06qy3/jfqpzBir+4zl8V90VefUS3bD2+yLir+F4EHWS8D5rGs5foe6+bblgJW69UtcKjWHe/52j8nmXIP0xanEMr62SUL7+qc57rnzntade5kKuNbChaG5nRk2+O53txMtbPYUSBDSsY4HQj2zmgsjAvZI4JPA8mVkQg5ZFbqH09YvOHqWLuWQMdm12JCGOEMYV3zf87ve0fIOi7osATbrqfKNfwMgY4qiG6tVa+zqyeBmeeoRwpSbSSFrlhOCGnDQtkP7a10is6Wog5vmjy13ccv2U0f1fic+fC8TAB9qLad6HdGmQrpjsBS+uza/EkAl/84S+bK7NZsVPZtRZ09EIrVZPh41AsMBXGuMWn+Fw1fNEny7/o9cEiavMC2zwbcQpmhk/svgV4l8JTzQqXgNj1+e9txW7vbxVVGUGM7qnYoJHPv0KlV5XSmKIzyYeA7X86Maytjhmap2HF1+BPTSUhSAwF4qaTWh566EJjGzcBIg3IlkZdc38HUknDXPYjjQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SEZPR06MB5269.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230025)(4636009)(366004)(376002)(136003)(39860400002)(396003)(346002)(451199018)(36756003)(2616005)(83380400001)(38350700002)(38100700002)(6666004)(8936002)(41300700001)(5660300002)(2906002)(107886003)(6506007)(6512007)(186003)(1076003)(26005)(8676002)(6486002)(316002)(52116002)(86362001)(66556008)(66946007)(66476007)(4326008)(478600001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: baeLqoSknjQ3/cKQdyiUh5wxYccAq1r/8ChyyW+SWnQwSjTBR2TRCYmfvjPtq/hG3LQQTorXpF/rurTqrH7pgXNUBS+65gyZL8ISinajf4e5Jkt8M7zogpnu3a59kO086iiGmzlprvHYZ8EuEn100qtQQk8gANL7jhto4H8ImF38aLVzvKRNN0BbUfcwKH0BRQArUkhiB9eRTA3jILjGzVBFYSG2tidjvSo3PPwdDJIcG8cP37qP5ZTcgSNlRJzIiXgKX5qulgGBAtF8xyb4SKB3EHEoi+nqDeuvhUwJ3Eu61dfD+G4G4SiwkXVW0GE21F93wmzbC8nwnlmwXTySfh84tPmktpXDcSVVXpcjmmc2eNAzFGJPcnu0M4JeHnbcRIL1TixDjHF/yxf4ERR40wP0vO/e90GieEbId+KYvIU/rTOWi4ieacLCkT2yrVXTNZDXNQLmsRmqHz8mbbcpc4iBAPsnWI8nZ6HOOjJmEBiQSHlJm4+afD86keV72zGVGNI8S6yEOFuXcVh0wQjH1h5URfcfl9VuwbSar65FuUkIrh9YBnwVqPrmHJzsfpCLqiZ/zO0BJc5o56466SSTlbheAMDIlsvp/LXDBpnBbRXHZ6WZrwPTr96Xmz32cIkZPtEtiwKC3jrLF0lRQogL5tbNSTpqzwDfA9FqLAAe8x5S0IOUg/DaIR7VeBVRRNfRYe88Eg4EZBXc1Ms4R2b71C9wzx+fDEJT2HMLs6gu9VV+zRDtc+lDTUXpoUGZPs3uewo843IGMvVi3C7ihfaUz2dwRyKoX+U52tw35SYrEwYV+Jw5XDUtV2jgdU7Qs3PbsftDG6xRPF/xDR/BEPyvWBCCur2Knn1efZMg26PYe+6k4UQMQHV6qoNANgGH3fUNsxpm6m/yC0QahJbL+dezYk7UWYEZiz4MLU+6fduAjXc0qaiTK4FZLtgSb3HZPe4Q22SlCQOO8KF/5oAaHjzeTJB5VNw6ic/Tsn/Y0BJ70Mg3/2lhkr/xHVLtotTRG0HTq9lfsC9V2gTcu5x+QYIXOEm8am1tvbXKizbamn/7t4nhDdAsuxeTLfYhw/Y3u/H1a4mA1U+VSmABes6V9KvgNik3BvWrerCdfXZ4nQjl77+vM2rUYcUcP98yhVKLZo6cwSaF5z8mHJjSm/C3InbNChipdz0Zghq2ysYgk99yhkrQ96mbfpDrmKxLSEjvwTjpWyidPU0A7SvFoLmrS11pcxVLP5htoMYLhT1AhNVCXOoktUEoyGQ2/MR8LpARX78MmqwR6JHl9LJu2FMwYM9P4cBuD5ReEc8QNjTWbx5/IL7aboYl+JhlDJ3WlOUrskHZAUOiKd+rWPxEVPHAyabBCMdy5XTvGrlgargCHduSm7JxcIsWVQp3KGiA/3UNQlxgsJ1/4zaAm52S1melarj5sZmCrtcqQ5s9NrE/5uJJQA6yi/8+aPmwObfpepBkWmRXyQgDzrTSvGPpRteVtQ6/UVHKgLeT+a40FWxfV0YGcAtv1OOPCh52b2BEF7tgF9BspV7dGo8vg5kk4vzuYvXH04d6vV+RB78DY/ZCzVsDXOZN9PGKBoDfcSh0BbtzZpYM X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 012688d4-8801-4d34-636e-08db0dcd360b X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Feb 2023 14:18:43.0635 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 923e42dc-48d5-4cbe-b582-1a797a6412ed X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: na72zl2CaW6f21weVUkuR256T7ErR5MN4eXrC5ZHZWFCPIT64g7kqP8g8+jbxl1nRavYnF6KqI/OLvHPfzNSYw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SI2PR06MB4233 X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,RCVD_IN_VALIDITY_RPBL,SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757726464798916978?= X-GMAIL-MSGID: =?utf-8?q?1757726464798916978?= For each loop add a local f2fs_sb_info pointer insted of looking it up. Signed-off-by: Yangtao Li Reviewed-by: Chao Yu --- fs/f2fs/debug.c | 44 +++++++++++++++++++++++--------------------- 1 file changed, 23 insertions(+), 21 deletions(-) diff --git a/fs/f2fs/debug.c b/fs/f2fs/debug.c index ff5995cb9560..30a77936e3c5 100644 --- a/fs/f2fs/debug.c +++ b/fs/f2fs/debug.c @@ -373,16 +373,18 @@ static int stat_show(struct seq_file *s, void *v) raw_spin_lock_irqsave(&f2fs_stat_lock, flags); list_for_each_entry(si, &f2fs_stat_list, stat_list) { - update_general_status(si->sbi); + struct f2fs_sb_info *sbi = si->sbi; + + update_general_status(sbi); seq_printf(s, "\n=====[ partition info(%pg). #%d, %s, CP: %s]=====\n", - si->sbi->sb->s_bdev, i++, - f2fs_readonly(si->sbi->sb) ? "RO" : "RW", - is_set_ckpt_flags(si->sbi, CP_DISABLED_FLAG) ? - "Disabled" : (f2fs_cp_error(si->sbi) ? "Error" : "Good")); - if (si->sbi->s_flag) { + sbi->sb->s_bdev, i++, + f2fs_readonly(sbi->sb) ? "RO" : "RW", + is_set_ckpt_flags(sbi, CP_DISABLED_FLAG) ? + "Disabled" : (f2fs_cp_error(sbi) ? "Error" : "Good")); + if (sbi->s_flag) { seq_puts(s, "[SBI:"); - for_each_set_bit(j, &si->sbi->s_flag, 32) + for_each_set_bit(j, &sbi->s_flag, 32) seq_puts(s, s_flag[j]); seq_puts(s, "]\n"); } @@ -394,21 +396,21 @@ static int stat_show(struct seq_file *s, void *v) si->overp_segs, si->rsvd_segs); seq_printf(s, "Current Time Sec: %llu / Mounted Time Sec: %llu\n\n", ktime_get_boottime_seconds(), - SIT_I(si->sbi)->mounted_time); + SIT_I(sbi)->mounted_time); seq_puts(s, "Policy:\n"); seq_puts(s, " - IPU: ["); - if (IS_F2FS_IPU_DISABLE(si->sbi)) { + if (IS_F2FS_IPU_DISABLE(sbi)) { seq_puts(s, " DISABLE"); } else { - unsigned long policy = SM_I(si->sbi)->ipu_policy; + unsigned long policy = SM_I(sbi)->ipu_policy; for_each_set_bit(j, &policy, F2FS_IPU_MAX) seq_printf(s, " %s", ipu_mode_names[j]); } seq_puts(s, " ]\n\n"); - if (test_opt(si->sbi, DISCARD)) + if (test_opt(sbi, DISCARD)) seq_printf(s, "Utilization: %u%% (%u valid blocks, %u discard blocks)\n", si->utilization, si->valid_count, si->discard_blks); else @@ -515,15 +517,15 @@ static int stat_show(struct seq_file *s, void *v) seq_printf(s, " - node segments : %d (%d)\n", si->node_segs, si->bg_node_segs); seq_puts(s, " - Reclaimed segs :\n"); - seq_printf(s, " - Normal : %d\n", si->sbi->gc_reclaimed_segs[GC_NORMAL]); - seq_printf(s, " - Idle CB : %d\n", si->sbi->gc_reclaimed_segs[GC_IDLE_CB]); + seq_printf(s, " - Normal : %d\n", sbi->gc_reclaimed_segs[GC_NORMAL]); + seq_printf(s, " - Idle CB : %d\n", sbi->gc_reclaimed_segs[GC_IDLE_CB]); seq_printf(s, " - Idle Greedy : %d\n", - si->sbi->gc_reclaimed_segs[GC_IDLE_GREEDY]); - seq_printf(s, " - Idle AT : %d\n", si->sbi->gc_reclaimed_segs[GC_IDLE_AT]); + sbi->gc_reclaimed_segs[GC_IDLE_GREEDY]); + seq_printf(s, " - Idle AT : %d\n", sbi->gc_reclaimed_segs[GC_IDLE_AT]); seq_printf(s, " - Urgent High : %d\n", - si->sbi->gc_reclaimed_segs[GC_URGENT_HIGH]); - seq_printf(s, " - Urgent Mid : %d\n", si->sbi->gc_reclaimed_segs[GC_URGENT_MID]); - seq_printf(s, " - Urgent Low : %d\n", si->sbi->gc_reclaimed_segs[GC_URGENT_LOW]); + sbi->gc_reclaimed_segs[GC_URGENT_HIGH]); + seq_printf(s, " - Urgent Mid : %d\n", sbi->gc_reclaimed_segs[GC_URGENT_MID]); + seq_printf(s, " - Urgent Low : %d\n", sbi->gc_reclaimed_segs[GC_URGENT_LOW]); seq_printf(s, "Try to move %d blocks (BG: %d)\n", si->tot_blks, si->bg_data_blks + si->bg_node_blks); seq_printf(s, " - data blocks : %d (%d)\n", si->data_blks, @@ -589,7 +591,7 @@ static int stat_show(struct seq_file *s, void *v) si->ndirty_imeta); seq_printf(s, " - fsync mark: %4lld\n", percpu_counter_sum_positive( - &si->sbi->rf_node_block_count)); + &sbi->rf_node_block_count)); seq_printf(s, " - NATs: %9d/%9d\n - SITs: %9d/%9d\n", si->dirty_nats, si->nats, si->dirty_sits, si->sits); seq_printf(s, " - free_nids: %9d/%9d\n - alloc_nids: %9d\n", @@ -616,12 +618,12 @@ static int stat_show(struct seq_file *s, void *v) si->block_count[LFS], si->segment_count[LFS]); /* segment usage info */ - f2fs_update_sit_info(si->sbi); + f2fs_update_sit_info(sbi); seq_printf(s, "\nBDF: %u, avg. vblocks: %u\n", si->bimodal, si->avg_vblocks); /* memory footprint */ - update_mem_info(si->sbi); + update_mem_info(sbi); seq_printf(s, "\nMemory: %llu KB\n", (si->base_mem + si->cache_mem + si->page_mem) >> 10); seq_printf(s, " - static: %llu KB\n",