Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1351854pxu; Sat, 5 Dec 2020 12:46:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJyaWCNPOIWC+nqREfy/gpb8x31Bs6Eo6qBBv7nqEhxzg1qYyJtoolze7mxwoOnpG892yYna X-Received: by 2002:a17:906:fa8b:: with SMTP id lt11mr12666689ejb.94.1607201190180; Sat, 05 Dec 2020 12:46:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607201190; cv=none; d=google.com; s=arc-20160816; b=oWw7wws596v860861pxho7XaavciwONHtOV/R0fd98ZYvo9sy9jMxWLF0W+vRpPQKo gSwOdf12Qmw+a49PjBnT0LVQmoUcKjp2i2z8RVN0p4mX3M+58lBzu9wCmxvZ0i4TWFB6 Cmt+KTEg2TbqQhnoywoSwxtKqQyOFZvEv6bMxQS0BLz5OVDOhh/vbXy3SAZegTYoBfG9 noPPCVYXznw8s7ub1oxNpcwmRNmUU/DFXPsUGxGwpDyErCkAxr7W9bOOaKcGon9Rbbyj Ejl/mXP2RyF/8CPFacQLGsF3D6L7lkZOfowAbLR5U2E8cW3HGY9ZxGXOVPwzGV8K6fAJ u2Eg== 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:dkim-signature:date; bh=i0LyxSM1LrvzFnlp2pasnuto+Sx9P195F9agpA//1l0=; b=mOWPOVqh7m8fRQObpHCklF80CppDNsJZv5ZTMSHRbgHHKXAwByRdNszGlsQ/u64u4r Rrqgmu9f/wS+J6EI/pQWvjO2bUWagqPZw+MyUvV9GLU90zl+4+lUDj245HMI5v0wWbyK g9ya3T9INIbDFz1N6eA1HjVQNu/uBU1OoCIJ+GZL/CKgE06PNkvQpJRV5+x0GCFz94lR Y3duqZ2wzny7NGZ+Q+938WBP0feQU+70z+cTgTjbCCSveebSlsapvOdZ6QqcYpjZqcqm qyAPk9Vd/hbyUzqOdqt6GEnUHqqH9cYn+x6QBfwG11+pd0nsc6u7ubDSV1qD/n0lQVIM 5Kzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BSwp5oHx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id he7si3701107ejc.676.2020.12.05.12.46.07; Sat, 05 Dec 2020 12:46:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BSwp5oHx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726120AbgLEUn3 (ORCPT + 99 others); Sat, 5 Dec 2020 15:43:29 -0500 Received: from mail.kernel.org ([198.145.29.99]:51494 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725996AbgLEUn3 (ORCPT ); Sat, 5 Dec 2020 15:43:29 -0500 Date: Sat, 5 Dec 2020 12:42:46 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1607200968; bh=x7rofouDQwKdeiKgyOhN+pS04UY3hUFno5zmc3XEp/M=; h=From:To:Cc:Subject:References:In-Reply-To:From; b=BSwp5oHxvRnU8AvzY71q/6TaPmFzAoz7cc+JBdhBHrVpHwV7K5lpf5geXcVR/3HVZ lVy7fctqxxWna3ecKA9hfPF+/xAFXbcj9DQbYnQ/IiHSuZEXZWuEil3xMiIKNaGbls pMyGXF5fDyJ3mAXndkox84Iogk8xxxVWjLuAvs1Zgl42IDkgYaXe1oCfuYA82BnUfl qlAWKyhOol094Rb9TB8cOLkV0DJBv+EqPRiBxgeVNgJzyHVqtCgCcv0HmUWuCJNYwF PAgaKmcD/6Ly61VLNqrCKnWFR6bxg5lplbaRDT1BGD87DAGJ0upT2EFvzD3Voy8aQA 0iXtpasLtLXEA== From: Jaegeuk Kim To: Chao Yu Cc: Chao Yu , linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org Subject: Re: [PATCH] f2fs: introduce a new per-sb directory in sysfs Message-ID: References: <20201127090118.84235-1-yuchao0@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/05, Chao Yu wrote: > On 2020/12/5 2:23, Jaegeuk Kim wrote: > > On 12/03, Chao Yu wrote: > > > Jaegeuk, > > > > > > Can you comment on this patch? > > > > Waiting for use-case? :) > > How do you think of duplicating below stats into /sys/fs/f2fs//stat/ We can't move them to /stat, since it requires lots of mess. Let's think about new ones only. > > F2FS_GENERAL_RO_ATTR(dirty_segments); > F2FS_GENERAL_RO_ATTR(free_segments); > F2FS_GENERAL_RO_ATTR(lifetime_write_kbytes); > F2FS_GENERAL_RO_ATTR(features); > F2FS_GENERAL_RO_ATTR(current_reserved_blocks); > F2FS_GENERAL_RO_ATTR(unusable); > F2FS_GENERAL_RO_ATTR(encoding); > F2FS_GENERAL_RO_ATTR(mounted_time_sec); > F2FS_GENERAL_RO_ATTR(main_blkaddr); > #ifdef CONFIG_F2FS_STAT_FS > F2FS_STAT_ATTR(STAT_INFO, f2fs_stat_info, cp_foreground_calls, cp_count); > F2FS_STAT_ATTR(STAT_INFO, f2fs_stat_info, cp_background_calls, bg_cp_count); > F2FS_STAT_ATTR(STAT_INFO, f2fs_stat_info, gc_foreground_calls, call_count); > F2FS_STAT_ATTR(STAT_INFO, f2fs_stat_info, gc_background_calls, bg_gc); > F2FS_GENERAL_RO_ATTR(moved_blocks_background); > F2FS_GENERAL_RO_ATTR(moved_blocks_foreground); > F2FS_GENERAL_RO_ATTR(avg_vblocks); > #endif > > Thanks,