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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1C20DC4332F for ; Thu, 15 Dec 2022 02:21:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229614AbiLOCVt (ORCPT ); Wed, 14 Dec 2022 21:21:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229451AbiLOCVp (ORCPT ); Wed, 14 Dec 2022 21:21:45 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D177B554D4 for ; Wed, 14 Dec 2022 18:21:44 -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 6FE0E618CC for ; Thu, 15 Dec 2022 02:21:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 06BE3C433D2; Thu, 15 Dec 2022 02:21:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1671070903; bh=0iptShXCJSeoqtzCgX7jkKKJ6AltXplKHWxJjv7ZfSU=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=h8ApMoY4UCDFGj96nVZyZuCwCu6XJQ1VaOst3z1I6TELfMyQSThXcbqKUujpUMjhH ZqKCcS6uaLYbzRE6dbhYfo6cDci7/QDFARjcG5c5xOWnc3NFzsvmhml3tarWXwA8dH eo1EUGE/4rQe2uTQlw99JsVA2lmWSNFb2aeHZ20BvUZvgbTiY7peYVYLFRhipS/FND +/S+yZLpQj9lluurWUyqz8wgCrCwygeT+XVHQnkx57RPzXhzkiIcxYl7rHxuagcegd +WTrBl0R777uK2Ifh6SR4Q2bsY1YN4AYjqHhfCup7mk9HJM2mkb+6aZHW/h85vv8Mz +6ouq1VA6PA7Q== Message-ID: Date: Thu, 15 Dec 2022 10:21:41 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Subject: Re: [PATCH] f2fs: fix iostat parameter for discard Content-Language: en-US To: Jaegeuk Kim , Yangtao Li Cc: linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org References: <20221213115454.14885-1-frank.li@vivo.com> From: Chao Yu In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2022/12/14 3:11, Jaegeuk Kim wrote: > On 12/13, Yangtao Li wrote: >>> What do you think of extending this function to support io_counts? >>> >>> void f2fs_update_iostat(struct f2fs_sb_info *sbi, struct inode *inode, >>> enum iostat_type type, unsigned long long io_bytes, >>> unsigned long long io_counts) >> >> Support to have extra io_count. >> >> But I don't think there is any need to add additional parameters to f2fs_update_iostat. >> IIUC, each call to f2fs_update_iostat means that the corresponding count increases by 1, >> so only the internal processing of the function is required. >> >> BTW, let's type out the iocount of the additional record in the following way? >> >> time: 1670930162 >> [WRITE] >> app buffered data: 4096(1) > > How about giving in another columns with additional stats like avg. len/call or max. len? Maybe call is better? w/ it we can calculate avg. len/call. Thanks, > > app buffered data: 4096 1 > >> >> Thx, >> Yangtao