Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7504758rwb; Mon, 12 Dec 2022 15:54:51 -0800 (PST) X-Google-Smtp-Source: AA0mqf4zDIPBzIefm/Jy3hDm7RSLU56d4w29eTxPXY2F+bGovIA208nTyc+9Q/SGkKWeWDUAMazS X-Received: by 2002:a05:6a20:8f23:b0:ad:c2f5:267c with SMTP id b35-20020a056a208f2300b000adc2f5267cmr2980681pzk.53.1670889291626; Mon, 12 Dec 2022 15:54:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670889291; cv=none; d=google.com; s=arc-20160816; b=CG3t5Pl7xnYM34yYgcUtgbayooTykE76bRWIaf6KeaQML2VY1hJ/2INpQqMRm5+vLL LkRQpXb4Ty7zFCTRUTvrHa/cvDzK3/7DyL0nIZC6Md7K/FW4S9axoLqWevDz+dqX6RHZ xa5xrk2oxGnDbtsezVI8tzwfQouZLsmRqhXnT58w8MhmufhEIO1E7CVGldXPwSf1wQUB elryS8LhiUKtjCHiSbbN/Yy5sgVUaIKsI5irZw941Nizc45OEsV30PTVsjLE4hvJ2nRg r41+Sdf7mdiMnzip8+HfbRe+lKXiVije6oN/thE/RJ5ePdpwu3Qv15ynyotCG0gp0oZc Q4zQ== 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=2EZPtfefn5rUz36w5lI1l5X59LjdAskcCFXB5M3gty0=; b=LjnLQLdivZ7axWVRVcZFyAeYk5OaGq92N+TybUYVBuyNyV9gYXrzg0Dl+3IbSLJ0Ng 0M6/HCNKkdyhS411XRHFTENQoaX5HKGGqkI7ivmySFNHy6yDKcQoZJM6LWyPMNhWEzYR zDVqnxQ1Bo6V4rH+8nHLyDwjSB7LRF7A+bowW5qcwMY09cFkp+CVsTcmve7FolxseCTR IPTdmfKnVrIBv5cp8lHTNQO1JPme2ir4a3YU0sj6TFUUG8QEcTjQltNIyepN4cJ65eW5 l6gz+z7WWbzJagmpzXtCNN1tH3PZ+4ad+OjoQMp3+Xv+Hs73eiAQiGsqD3MqkrxDLXF9 LxrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YmBZCjpY; 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 u9-20020a170902b28900b001853ad3944dsi10307419plr.480.2022.12.12.15.54.42; Mon, 12 Dec 2022 15:54:51 -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=YmBZCjpY; 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 S233805AbiLLXB0 (ORCPT + 74 others); Mon, 12 Dec 2022 18:01:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58382 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233288AbiLLXBX (ORCPT ); Mon, 12 Dec 2022 18:01:23 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 791D01580C for ; Mon, 12 Dec 2022 15:01:23 -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 154C761267 for ; Mon, 12 Dec 2022 23:01:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 592C7C433EF; Mon, 12 Dec 2022 23:01:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1670886082; bh=9oAgjcdDOYAHUDkoGMnxE/ESGaH+GAmrrh+m5qqxu00=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YmBZCjpYmZak8jMVAv7HENvrL+ypajMzY+nHvmi1I3fGWSkjFL3EQ1Pin5euLoH7O 9MHcga12zkzVQymQw5Sn+0KiVady2ch3jeKGRI/61f9LYWKYQc+m5XSAPF+9QEZHhG /u40MRTpOTODV8Ay1+qXErV5BUQPJ3daK3dw3hbnaW0dIg0F9HUvoWheKDVwZ/QERg 5ZA38QvasZ9it/7RuoNAiKxj4QSy15/Pa/szer2s1MVM/1bD1nwrS1pjI8uEZTX5hU LG1tgWdxOtUvLEUog/McIOaYGvoCvbvIyNoNsNMTuMcrkkityIx0lxkzDDgGpqOF2R OG7lbWGCdzgKA== Date: Mon, 12 Dec 2022 15:01:20 -0800 From: Jaegeuk Kim To: Chao Yu Cc: Yangtao Li , linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org Subject: Re: [PATCH] f2fs: add iostat support for FS_DISCARD_IO Message-ID: References: <20221212054706.65579-1-frank.li@vivo.com> <5cc534fc-1192-887a-91e1-2f1c2283b212@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5cc534fc-1192-887a-91e1-2f1c2283b212@kernel.org> 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 Please check the previous comment. On 12/12, Chao Yu wrote: > On 2022/12/12 13:47, Yangtao Li wrote: > > Just like other data we count uses the number of bytes as the basic > > unit, but discard uses the number of cmds as the statistical unit. In > > fact, the discard command contains the number of blocks. In order to > > avoid breaking its usage of application, let's keeping FS_DISCARD > > as it is, and add FS_DISCARD_IO to account discard bytes. > > > > Suggested-by: Chao Yu > > Signed-off-by: Yangtao Li > > Reviewed-by: Chao Yu > > Thanks,