Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp13712750rwl; Wed, 4 Jan 2023 11:56:05 -0800 (PST) X-Google-Smtp-Source: AMrXdXu79ebk4EHHzMYixpkY3lk8DC4eHz3foMrLk4g7Tz5WinyxnlKrDoonedhmPUUCeT8g1jyC X-Received: by 2002:a05:6a21:e20d:b0:af:b16b:eeb4 with SMTP id by13-20020a056a21e20d00b000afb16beeb4mr66680375pzc.26.1672862165378; Wed, 04 Jan 2023 11:56:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672862165; cv=none; d=google.com; s=arc-20160816; b=P5REquiTLlGRob0brNSqDvi/2toRgGbcjXTlzmr32ots0GbHpfpI2k/sjBTutKVrEo WcWawdWIUbNtYQYbdjK1ibuHrTjridLWUYApo4VkrNv4E5267aenoTvFjIvV4eAIkjCo Tz3PKplqW5Zar+VEIzovntgdIAdqINDhXjMrmhWlUaOO658vNEbxjUpewF3sydhZpQuw otSfxTWnvt5IgJA9YopLK0PsY8ontc0QMYtCgn2ZmTHtz6WYEk6AqHtIoXtzXWanJk0d Tq94hnFIY1tvKiepIrsSfqk/iCuyKyD3R9mV/2I6/LlIvFpJMbFXkk9y6uyb+U+I0kwP rzjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=+IyoAWKvDlKpUfNWhYTuDG9v/T/ff/6Kjae0YCvee+Y=; b=08hgAVX9t6qDc2mz5FRUN3C/7LkUz6SdRuN6nAAt9aHBnPWq+JDqPD4mk1XhU3H+ES 8c75Dx4HqVrOijPcnsoELMWLUiauaBcEBhIHaKYxhD9G1NRw6yqpAUdQRDZr+5oSq7dk VoqCkyHso4uLFOXw7TIN29clrPNlxPiUi1oHeXAYmPIeqEbWNaKQDvn3m/1TXZ11rOMw aosV3sA3iZ8nTOsihtruYWOkV+x4NCMEhK/i68p/oWiNwpTN/BbQ9ake8FEM5tT+87Yg 03UySTCjcMxvx3ulhlz1FpG978umSxHTTjfouRSgCr3jPxd86Jl9LwaFSZgbBAjMz2mM V+/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bbdkcoCw; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y12-20020a655a0c000000b004404162e5e0si36779123pgs.593.2023.01.04.11.55.58; Wed, 04 Jan 2023 11:56:05 -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=@kernel.org header.s=k20201202 header.b=bbdkcoCw; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239812AbjADTUY (ORCPT + 56 others); Wed, 4 Jan 2023 14:20:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60896 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235099AbjADTUW (ORCPT ); Wed, 4 Jan 2023 14:20:22 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07ADDCC5 for ; Wed, 4 Jan 2023 11:20:22 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 98315617EB for ; Wed, 4 Jan 2023 19:20:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CBAA6C433EF; Wed, 4 Jan 2023 19:20:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1672860021; bh=LpiVGTpm8ApY3OR3JbRwYHLopeoTKEw6B1JHMX4gXiM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=bbdkcoCwzuuXfX7vSc31lbbGKZU9AZsXOaw4pd8z4VulQmx1Ys3VVEZcSDx4xM+At iyxONlbK25qxA85djRVAecg2l84tbSlsAac+btL+SspzzEIEmmoHW5/VgX4Fa9ojK2 MOP6ErLXZlI1Mlc/DCJmKItahxo22TgGV3g2Hf3g3CKev1kICa5XoT9+QPZWPwUOl3 962x9qRBNw3ypwK3axNQPsezeeXDmXiKrQzwbhYxz+EVsk0smyLka98YVnMPaK4gBZ zpxesLin9HIKqxYwu7CPIThTuLrNre3H+3isgyvs/MVBcdDgiBx/req2+8PWrs/Nd3 wA+W4FpFVE7EQ== Date: Wed, 4 Jan 2023 11:20:19 -0800 From: Jaegeuk Kim To: Yangtao Li Cc: chao@kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/4] f2fs: reset iostat_count in f2fs_reset_iostat() Message-ID: References: <20230104112158.15844-1-frank.li@vivo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230104112158.15844-1-frank.li@vivo.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 Hi Yangtao, These are all in dev-test branch, which means you don't need to stack up more patches on top of it. I just integrated most of them into two original patches. Could you please take a look at this? c1706cc0cd72 f2fs: add iostat support for flush acd6f525e01c f2fs: support accounting iostat count and avg_bytes https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs.git/log/?h=dev-test Thanks, On 01/04, Yangtao Li wrote: > Commit 8754b465c249 ("f2fs: support accounting iostat count and avg_bytes") > forgot to reset iostat count in f2fs_reset_iostat(), let's fix it. > > Signed-off-by: Yangtao Li > --- > fs/f2fs/iostat.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/fs/f2fs/iostat.c b/fs/f2fs/iostat.c > index c53b62a7ca71..8460989e9bab 100644 > --- a/fs/f2fs/iostat.c > +++ b/fs/f2fs/iostat.c > @@ -220,6 +220,7 @@ void f2fs_reset_iostat(struct f2fs_sb_info *sbi) > > spin_lock_irq(&sbi->iostat_lock); > for (i = 0; i < NR_IO_TYPE; i++) { > + sbi->iostat_count[i] = 0; > sbi->rw_iostat[i] = 0; > sbi->prev_rw_iostat[i] = 0; > } > -- > 2.25.1