Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3988492ybg; Tue, 29 Oct 2019 00:01:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqwxGqQx2+20fU+0j4Qktk1ETnvw6YUlkRz0nWCvDfS6uWj50mPdeqxJnuF4jlLWmKb+Y+4I X-Received: by 2002:a17:906:a44:: with SMTP id x4mr1562615ejf.64.1572332467920; Tue, 29 Oct 2019 00:01:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572332467; cv=none; d=google.com; s=arc-20160816; b=qkc0V+V3VHt2FEilB0dXaNKGsC973VCVx8RZTSOLfHIqPZQqjR5XnGFv0uu8ZSwPzV /Pw7qNVhC/wANHjK6T1z3QSXpQR5Ug2e+AKkQuEYOpW0JJwAa5FK8dEtFfhEtbQq5h3q WyI2dtceYN+h78xQsj4yn+BNeUdQw32CfAvVZ6vvFuMWxHFhCG3BJB1phG/zcvjMoeEZ He+DE1x0MwWcbGFnaY+ocUudMmNn0w5iA6MUpQVxpmwP3Fo2020tBqirDs/GJn92zC+P dByu0hBnSaRzvgtAg3j2Ctb5Wro20ahE/ZVGkWFMsmBh7m55xoceuUAmvyQIy3papStn K4Ig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=EFG/NUMsi6FfdyRZ+1e8lH7DWnn/2sbhoHTkW1LTspQ=; b=WyakR66TkmaHeaDvdgjubpU2FsMSGpv7/1C0kRSdku+AQp5omKlKHT59cuGjF6+Fh2 X9/WKc0bj1trR4dGqseArXcU8R0ATN4mOIKDiUNjekPZc1CIq/JOPzqYJgy+LzK+z/wN D6sZkGzv58UBAWQC6Rrrp6rV/HO08KKK9SjBJjj2qXqZy7wSYGbazOl4jqXC6BC8Ij+h 8XKspSbsZe//DxGnt4O1nhYa1bx2K581PAsoDKqiFs2za5LZmlSYdfD9pNYJ25++gtLt uFpVncpDSbSXb3/rpJrgNDaVQbgi782Dc2Zbz6KgyOf8uzbQLUokqaBKuWPQg/g6ay0K IL6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="N549/5ei"; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k8si7893043eja.291.2019.10.29.00.00.43; Tue, 29 Oct 2019 00:01:07 -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; dkim=pass header.i=@google.com header.s=20161025 header.b="N549/5ei"; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726749AbfJ2A1Y (ORCPT + 99 others); Mon, 28 Oct 2019 20:27:24 -0400 Received: from mail-ot1-f68.google.com ([209.85.210.68]:36790 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725829AbfJ2A1Y (ORCPT ); Mon, 28 Oct 2019 20:27:24 -0400 Received: by mail-ot1-f68.google.com with SMTP id c7so8300645otm.3 for ; Mon, 28 Oct 2019 17:27:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=EFG/NUMsi6FfdyRZ+1e8lH7DWnn/2sbhoHTkW1LTspQ=; b=N549/5eirfYiMcEkpgmhVSSpEyVRHSOgPEz645xTJulyOKXBFmbS+kttzA1bI4775t KEB4cnQ8CSDgEaf3xORF5wcjxQN4e+EJo3f0Vm0GOg/j+Ahj2Dk1sSIozG/tGExY4mmZ KhHByJXLiNKUABr8oFs+9R4n4hLJs7TWoSpR0lCSSWO8XFfPKqYjYdevQPekSBIPqxA3 HvsjCa7jokmArh/ClM6pBzyipGOeaECa9E50bk2n6MCgYC8hn9dVW/OmmX25MFTC7gjG xTo47H1OBR74DUU0lbosTDLdnRM84NtxVrWeadlk+AwZH22SaGHJUA/R32VBcK01dqt0 VAJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=EFG/NUMsi6FfdyRZ+1e8lH7DWnn/2sbhoHTkW1LTspQ=; b=IIMuinP32IDZjw5+dxN/WBEwHnosvG6VgRgAWm+tOBHU8JYAdx+2FCNx+wVuswJSlN sC1IrOeeXI2MdPukipzuDLoLeSFKZ/VbTNeUz3edxA9aHv7fnzCAPW0GlFteBaFfN1PZ xr0tgxRURO+6n9f4MruTta6OW1pjfJvioeb4zUsfsHFfV9wVBQ7gQw4HXhZnYn6yLYxn KumWHFERmZHH+ZbbmjYIvV3bch7dLq8dXGYuwoMT+GkQH/Ra4pX59FRRibAl/5BOVWC4 HTIJl1083hZj5xEGLC6kGH+S38yoNt0ktOjdLOvSD1c+zOHPTLFHnW1xpqw2t6ky6kxJ 2UAA== X-Gm-Message-State: APjAAAWHZeaYRRvRv04ZJ2wkw22J5VqeAxNw92VHzW7GGyoRXoCGS5kt YzZyYOZVpD7hPOJvRWKYz5WcZaHTvx/2WSEUJNUtJA== X-Received: by 2002:a05:6830:1bea:: with SMTP id k10mr11448680otb.190.1572308842618; Mon, 28 Oct 2019 17:27:22 -0700 (PDT) MIME-Version: 1.0 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> In-Reply-To: From: Hridya Valsaraju Date: Mon, 28 Oct 2019 17:26:46 -0700 Message-ID: Subject: Re: [PATCH 2/2] f2fs: Add f2fs stats to sysfs To: Chao Yu Cc: Jaegeuk Kim , linux-f2fs-devel@lists.sourceforge.net, LKML , Android Kernel Team Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 25, 2019 at 6:38 PM Chao Yu wrote: > > 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. Thank you Chao and Jaegeuk. I will make this change and send out a new version. Regards, Hridya > > Thanks, > > > > >> > >> Thanks, > >> > >>> > >>> Regards, > >>> Hridya > >>> > >>>> > >>>> Thanks, > >>> . > >>> > > . > >