Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp162568ybg; Fri, 25 Oct 2019 18:41:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqx1VphN5WJdutRKlejmg+14qb+JD/DdRomQ8iWWTdy/Pb9stHM1SWdLeFGtzQiws2DGyBMM X-Received: by 2002:a50:8b45:: with SMTP id l63mr7271632edl.31.1572054084909; Fri, 25 Oct 2019 18:41:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572054084; cv=none; d=google.com; s=arc-20160816; b=PHjtYnPNgdXsUWdtvIytWgaxsqty+aDkPYc4DIRl7ln1sEcHjsWxJhWyGL7MK2P3mJ yzHF3aU4g4Er5nI5sn7cmc8myEgv+JBUnoZiT8tn3F01g71zcLda099GQRj+1xlTxLge NSugwHtFt2Lukq88g2eX4ltelKrEPDAeRk3z1DM0iKPoOfwsT8Bq12win41LquzAAVEU jWjtJfEZUBxZMFJ6sMfhU+NSzC4CcjYDq6/icgCU2Lt3zc17P19pTjOPbfQvOYf82M3m Ti0qQYDWwHuXj28pRvnOJUqdOvilVY/OF23Tz9/tZI0PBscH0wHAosmqI7uut370wrae zaOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=kV8dwHdSKs7su497qkCOarVWPruE2vD5/Y2LlOggrNc=; b=FzH3b57/pZLZoghTCFvV1mXP2iI7ie4J3i0k2gWjxTChWrAXd//n+UnAYnbHRTMqdU xj+Ywm1InLY0H4MR3kSAOvuF8q9ySBkoJUj9md3FHaVmR6B1s8L9lvKgYbHlgwK9y6GD +UyS8QtOLJz2vAakAqdyIktkbEuvQNlQ/Nl95joVderz1fz5BiEWHJT6u8EpIcFBJt09 V5j5wD/bg6hiYJCrz9Cww5RFQCw7gROxznn0mRl8uebQvtxIozq7gp2hkpi+GR8tzNUT yWRhSXz08KTYPQmofZUhHyRUHAZeUZcyJU+SRrn9E84RYSVwJNl+NgR0dp5sIqc1sS4s MWBQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x13si2254065ejb.126.2019.10.25.18.41.00; Fri, 25 Oct 2019 18:41:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726106AbfJZBiH (ORCPT + 99 others); Fri, 25 Oct 2019 21:38:07 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:5189 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725899AbfJZBiH (ORCPT ); Fri, 25 Oct 2019 21:38:07 -0400 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 2FF9ED41810365E8BC66; Sat, 26 Oct 2019 09:38:03 +0800 (CST) Received: from [10.134.22.195] (10.134.22.195) by smtp.huawei.com (10.3.19.205) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sat, 26 Oct 2019 09:37:58 +0800 Subject: Re: [PATCH 2/2] f2fs: Add f2fs stats to sysfs To: Jaegeuk Kim CC: Hridya Valsaraju , , LKML , Android Kernel Team References: <20191023214821.107615-1-hridya@google.com> <20191023214821.107615-2-hridya@google.com> <96f89e7c-d91e-e263-99f7-16998cc443a7@huawei.com> <20191025182229.GB24183@jaegeuk-macbookpro.roam.corp.google.com> From: Chao Yu Message-ID: Date: Sat, 26 Oct 2019 09:37:57 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20191025182229.GB24183@jaegeuk-macbookpro.roam.corp.google.com> Content-Type: text/plain; charset="windows-1252" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.134.22.195] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019/10/26 2:22, Jaegeuk Kim wrote: > On 10/25, Chao Yu wrote: >> On 2019/10/25 11:51, Hridya Valsaraju wrote: >>> On Thu, Oct 24, 2019 at 2:26 AM Chao Yu wrote: >>>> >>>> On 2019/10/24 5:48, Hridya Valsaraju wrote: >>>>> Currently f2fs stats are only available from /d/f2fs/status. This patch >>>>> adds some of the f2fs stats to sysfs so that they are accessible even >>>>> when debugfs is not mounted. >>>> >>>> Why don't we mount debugfs first? >>> >>> Thank you for taking a look at the patch Chao. We will not be mounting >>> debugfs for security reasons. >> >> Hi, Hridya, >> >> May I ask is there any use case for those new entries? >> >> So many sysfs entries exist, if there is real use case, how about backuping >> entire /d/f2fs/status entry into /proc/fs/f2fs// directory rather than >> adding some of stats as a single entry in sysfs directory? > > These will be useful to keep a track on f2fs health status by one value > per entry, which doesn't require user-land parsing stuff. Of course, Android > can exploit them by IdleMaint, rollback feature, and so on. Alright, I suggest to add a sub-directory for those statistic entries, we can manage them more easily isolated from those existed switch entries. Thanks, > >> >> Thanks, >> >>> >>> Regards, >>> Hridya >>> >>>> >>>> Thanks, >>> . >>> > . >