Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp834731pxu; Fri, 4 Dec 2020 17:31:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJwyRbdP1LHh3eHy78sizVY3wpqpNAYco6HwH3JKgYc7FGVzNAsunB03fqJyGoV1R+tHDvC6 X-Received: by 2002:a17:907:2122:: with SMTP id qo2mr7610035ejb.539.1607131902987; Fri, 04 Dec 2020 17:31:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607131902; cv=none; d=google.com; s=arc-20160816; b=wXMC6wAZGOOKxWJBH7T6zb8ZG5T7wy0kJxaKAkVyqp5oEMaAYH4sxSHy0YjjuJoVj4 ilZcxtnMHmUEDLF8x4s5q/0yzJ99escNfJ751qIFcfCQrwjKwqkwHq6IjaoN6diZlCIe QFj4mrvBP17gXbXlk7DrK44CxW2d2EaxVxgNrdmXFAHo14G3QMqMXe1azbZeGnbQF31a 12XT3aXUoe9BRl9m3McqmnN883eUHl+IhsJ15KrW/GBGtQUvLVIISBqWFOzCHA7/TngX J15/L1t07dFQfV0zq7/sm3rKs4Nsgr0ij1Z9PmGB5QKAQqJSjuLojUAUhmFNFLIsPJHm Buqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:dkim-signature:subject; bh=ncnRFFhAf2bkE/qMO1vLebh3cSt8f3hDpPboPlQpgPg=; b=vnvq56ImysCcbYIU7cZUM73zbarOTZoXYL8mqANq0SgGmxYKc1IQEZHjIdMF1LwtJV 3zTLks+17ap6W2MqLxzE6iiqjXcGPbuGOexdl7iLVa9GIJIWOWsHCtC3sWQ/CTxdFpbI B3qi6uC4JVoWDGqIw/ZI3A8XLbuYnr2Ur0YIRddr+pHTH3V/tWVCzvwZlgXDZW5tCfLx w2q4diUNZ21bWMdWpLwZOT1pe4JlcdGqMbJQNOTGS1AlQBSsNLFX0RhElPqkP8hCQlb1 yqFwIjdgd9zVbwALnrVBK//gCc4u/qmCM8KOV8afXUKbjY9pDZX1JAMuBXPQzKlZRm/v hblQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RdgFsX88; 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 a23si4022830edy.268.2020.12.04.17.31.19; Fri, 04 Dec 2020 17:31:42 -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=RdgFsX88; 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 S1727761AbgLEB3t (ORCPT + 99 others); Fri, 4 Dec 2020 20:29:49 -0500 Received: from mail.kernel.org ([198.145.29.99]:54078 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726242AbgLEB3t (ORCPT ); Fri, 4 Dec 2020 20:29:49 -0500 Subject: Re: [PATCH] f2fs: introduce a new per-sb directory in sysfs DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1607131748; bh=JV56CdjyUv1Rv5BMk7QaP3IuCqfsvKze12smgZ438Ts=; h=To:Cc:References:From:Date:In-Reply-To:From; b=RdgFsX88favfTDnLR2lWWvSDPoZsx9GiPHI9L6IrnBb/hzecsHGF45dgbAhkpFn9X n3BlXB1hr5kB/nt+p9U6pknhjPZCGbZ7c48AtfToUyX95NnA5HjL7AtRcouvZ7lYXH 8jbtP83aZlexQV+i5KUDbnydSWe4y+vkrKfx2QuQs+skPfoIWGtWKvXUfkZTkeSJrs N8l2N0UXrVJneK9yatR4cm+YP59epbcNGGbp0nw54GSEXMc1jDOS1GhgtWc8FQB6SI /SFRRJmtbco5qObChvuhq1pxdKvZZGkjNRT21vxy9dwUGlvdMtEdHuXhPvm/YCp9OZ 9viTYkTYv3jvg== To: Jaegeuk Kim , Chao Yu Cc: linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org References: <20201127090118.84235-1-yuchao0@huawei.com> From: Chao Yu Message-ID: Date: Sat, 5 Dec 2020 09:29:03 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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/ 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,