Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4134433ybg; Fri, 25 Oct 2019 13:53:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqyHyoO+nKJ8SUfwzkKama6WtbsYcibTuuFxYv+Y6YHPtHKTIog6Bikr0whsTbIqnx4ZG/HV X-Received: by 2002:aa7:c895:: with SMTP id p21mr6369075eds.38.1572036788975; Fri, 25 Oct 2019 13:53:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572036788; cv=none; d=google.com; s=arc-20160816; b=JYC4sGQd4ZDTLZd5Jzwo4sapopxBt8lymfiKHMWa4mnkGL+bPK3kTmgkzp5TvIKufd iXFsorIMDlBkmxyj6mYuVJX/Babn9ywtqhfVYQS3HnKpmdFS889yGEGflQcJpea4wGYs 286Q6A78Vd8Swjfu4UP1Xv0cRxy9Yija04LTx5aYW3VydLjOkQYfn6K76sDlzGTByzuJ xOsSm0J8NtmGEUSqPxRNt7UDXrx45LfQWVbnUrA9ue8mrlweSUCNNGMa9Pn/GqPzNvQ5 iG5Urz+CEMw84yadm3Pj/nOXKzFIXUV/yoKLAXbLvP/TsCm7whdnBXRTdB0ABTwRLBZz K1Iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=1IF8ofIQptOiiIlI4YKM5vYiV24B1i1cYwAJ7jhdoOo=; b=dkwPPxKTQW2mj/hkwTtWo5wLHV++xAWqYcdZkRYR3cbz64U4M/OjO0feYFSTfJvzla Qb1X8BRFgLtId/cY+46yy5SNTQyJ4+dh1gEGBRJ0Ooq2q344sRQpUz9+iOb60cYj1KhD G4UMRLFSA2yw8cUXTQPRCGorRr3DMRA9Yi6mjCXb7W5ECME0QcTCZW+H0XR4MNqYQ61Q v46GJiOR0clCVAMEQdB0gCEvWpSFUxA19B+fXjynAEC06kOnZVDzhxh97EZ8gcitFl/A hQhvzPP1LcDCjqpl3cSGUeozwXk+L614BAeeUntq5cMyZ097V8rAWrirbsV5nWrIZ5yx drZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=t9gRv3Pn; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b26si1919787eju.87.2019.10.25.13.52.45; Fri, 25 Oct 2019 13:53:08 -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=@kernel.org header.s=default header.b=t9gRv3Pn; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730590AbfJYSWb (ORCPT + 99 others); Fri, 25 Oct 2019 14:22:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:33322 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727978AbfJYSWb (ORCPT ); Fri, 25 Oct 2019 14:22:31 -0400 Received: from localhost (unknown [104.132.0.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4B9D12084C; Fri, 25 Oct 2019 18:22:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1572027750; bh=jW3jhqREmHORgTivuUZILx5c8BXB7MCqCsxfyYoTJfI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=t9gRv3PnUM3r7KhTPTtMv8ROhUaBDWEUF7FCnlh+0l4w4+zoMpQ3b6vLpBbO9WHo/ CXt/pfcTMNW0UR452lG1uxx8a3/KzORuZvF8+PtK6BmIt+wgQGp7SnPQiqefqgmiwy afeUzhutXpqXCjIlBQj/AVcdDher7NzO+4kWtkj8= Date: Fri, 25 Oct 2019 11:22:29 -0700 From: Jaegeuk Kim To: Chao Yu Cc: Hridya Valsaraju , linux-f2fs-devel@lists.sourceforge.net, LKML , Android Kernel Team Subject: Re: [PATCH 2/2] f2fs: Add f2fs stats to sysfs Message-ID: <20191025182229.GB24183@jaegeuk-macbookpro.roam.corp.google.com> References: <20191023214821.107615-1-hridya@google.com> <20191023214821.107615-2-hridya@google.com> <96f89e7c-d91e-e263-99f7-16998cc443a7@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <96f89e7c-d91e-e263-99f7-16998cc443a7@huawei.com> User-Agent: Mutt/1.8.2 (2017-04-18) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > > Thanks, > > > > > Regards, > > Hridya > > > >> > >> Thanks, > > . > >