Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4045880ybg; Fri, 25 Oct 2019 12:32:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqxk4q18aOOQCxHYSk0rtAG+86Ls+9+y4I38GKZKi2xwp2utFTpimmrK57kakBZ/IVHnTyDh X-Received: by 2002:aa7:dcd7:: with SMTP id w23mr5926972edu.34.1572031937239; Fri, 25 Oct 2019 12:32:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572031937; cv=none; d=google.com; s=arc-20160816; b=vZBTwsZFLgMV1+oxJaRG38nSdzP3l0871ScxWt4NClBe+AnLK9MYYPwKihr+cs/acq ZGN58LADSXYD/P80le/VFS30sCQLM3NvWg147Zf8bp1OI0n7eOZYVWHpj6Sn3Sezda92 lLGs5PBohwXtYS2sXFT+dwoJAYf352pan9wai8U0dc/O6eJdEo1Mv36ZcVZq1yDhaLOf GcCJusZrBaILKG0EuNR98YIdkBHUYzmGsB+THnOLeS4FdpGKA4j1Qyjm0WecJJiJS6qB cAZXWSA+PIWsQjRQg0QYIoi+tb+nQ4O3oreUTfFTMan+PwBAkMR+w4S8KXTo7E4mIVKR 28vg== 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=Dq7r46Qy3h5/A2nRc4eIYBiM22Riuv04KRUAOCbzY+M=; b=rQMLZN0m4YcUXefs+mn+9uWQt3JsOZrpzjg83JE0swMXLdYM0fNRfji3tZO8q0jjLb SGkf+5PGPoG6H//agC6m6z7iph5d/oXovFSSOCIE8BGZ9xAiI39iOcCeBaKHCB79Tgam R9FGlKK+/Vt+7YKcaIAyYegCo7rEs7z9gbd/j0JutKokcFcGXbiTihksiifJbYxmGiYF 5A9hW2RPfAbrHpzudJplBRr8UgylKFvmHZwOTDnmUFCqqsL4ONzO5x/lbHiDsB9U7Wyw h4vX9fWnS9Q5/m/6+oqJh01sH0Fnsv5XZaOqdwmoQIq1BQ9JIyVVCIKGM2aEuuYPEv91 Pclg== 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 n4si1764753ejs.402.2019.10.25.12.31.54; Fri, 25 Oct 2019 12:32:17 -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 S2407156AbfJYIbE (ORCPT + 99 others); Fri, 25 Oct 2019 04:31:04 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:5182 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2389290AbfJYIbD (ORCPT ); Fri, 25 Oct 2019 04:31:03 -0400 Received: from DGGEMS412-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 4A36215660F7E19A1B36; Fri, 25 Oct 2019 16:31:01 +0800 (CST) Received: from [10.134.22.195] (10.134.22.195) by smtp.huawei.com (10.3.19.212) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 25 Oct 2019 16:30:56 +0800 Subject: Re: [PATCH 2/2] f2fs: Add f2fs stats to sysfs To: Hridya Valsaraju CC: Jaegeuk Kim , , LKML , Android Kernel Team References: <20191023214821.107615-1-hridya@google.com> <20191023214821.107615-2-hridya@google.com> From: Chao Yu Message-ID: <96f89e7c-d91e-e263-99f7-16998cc443a7@huawei.com> Date: Fri, 25 Oct 2019 16:30: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: Content-Type: text/plain; charset="utf-8" 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/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? Thanks, > > Regards, > Hridya > >> >> Thanks, > . >