Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp104431pxj; Thu, 10 Jun 2021 16:11:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz09RuaYTmi+e65IFrFkFJ6KxQ39YlbvvCDl2yb6LPQJCNw77iRkmkkVi7P02KhK9vK4fAq X-Received: by 2002:aa7:c6c8:: with SMTP id b8mr777748eds.213.1623366709044; Thu, 10 Jun 2021 16:11:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623366709; cv=none; d=google.com; s=arc-20160816; b=Jg2ymxKB3RR0undxAF9KISg5pFR2PuBkq9PYdJ3zgaqcReQRo6WfFM59RXL8qpnUrE 42UV+XHned+8BsvMt6D+hsgxUDriMmvE6DUM8a0bKrzxG++oboxPMoPqkLStehX5ilHP PCiVqyk6NmyqYSwVVblVuAiGwoQUF88+jRkc0tLXkSf+QUTDlYjkUQWlzOSHfDTJ5UdY vCRCRAEAVvBJTDZSuM02RwBqZdiSIer9FctjrLt02AgB7XIttSn6Ygey9wJL0W5KnVED W+f8Md19QKQ5KbtctxYTQ99Qj8kKHeg4CGxLqOiAedRh8f/vlMZUCDYz8fNUzRmSJqYr SGAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=mEX2Z26oWBg7i99/ZUCpPFP57xkDJ04cdyo0xWY7CGA=; b=peM0cCYHS4CxSsEk4dvwz80BeNgAmBZHT58CgWOOjxAfIVUNHY2+pFyYs3o/PtghgL xQCyZ+3kDvEj6vmZt1w5Prf/Sl1o0FPCpiYsIgAfSOkk+78XVFQh/UP3X1I6rYhBNazm uSXMbFBf7bjU7VtGUQxwMwQPKHEJW78HUQRX4gS5csLIIG6A7lB27FcWzLUiAdn2l346 g0lHu7GG6x1lPxTUIXj0bEBJImHm+0QRhs2DoY8Ydh/Pt3GvJp8Y59w+LtosC3Y/ZKti 2sKfAxm+2QAghb9fV7OCvJw8/jRpwM3Ne82zE0Q+GMOP9jwCC6vsO8cQrJfYOqtvysc5 fFeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NF4EHiwQ; 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 g3si3197075edm.453.2021.06.10.16.11.03; Thu, 10 Jun 2021 16:11:49 -0700 (PDT) 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=NF4EHiwQ; 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 S230248AbhFJXLP (ORCPT + 99 others); Thu, 10 Jun 2021 19:11:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:47954 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230001AbhFJXLP (ORCPT ); Thu, 10 Jun 2021 19:11:15 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B1FAA613D9; Thu, 10 Jun 2021 23:09:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1623366558; bh=sehk7qVLTT99iBgWRG6d/XNEMQO3VwZUaO5rBbGONUc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=NF4EHiwQE/k2Ptgw6ReqIxI3Y7d3D6jDUeucaY9ot/SZGYXs2GfKym469zY9y+VII CMrHBZTY8Hp6MOU9wG7EsYmdBBd3RL2za0ykca8OhXMrgKm3ji2Chc5z8RvaoI1mEB TRyd1CupfTyQAlrdCkwsAGDH0dzSsX6YuaAHApth/Hf4dvY2UD7RbpLO0C40u4JPAg CIeZ76IJ85ZmCdEvWkXYtT3nDko4D+9CiBsUh9mcOmgg3eFkMT20OS/81Lh9cJkx/I FdULipM3yAfUWjl76a3h/hl6OkQxGMAMIQ6NnMLNXoNPwe0MeP3tdZLldV160zWbK5 ywbbfKlQsQx8Q== Date: Thu, 10 Jun 2021 16:09:17 -0700 From: Eric Biggers To: Jaegeuk Kim Cc: linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net Subject: Re: [f2fs-dev] [PATCH 3/3 v2] f2fs: clean up /sys/fs/f2fs//features Message-ID: References: <20210605003210.856458-1-jaegeuk@kernel.org> <20210605003210.856458-3-jaegeuk@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jun 05, 2021 at 10:36:10PM -0700, Jaegeuk Kim wrote: > Let's create /sys/fs/f2fs//feature_list/ to meet sysfs rule. > > Note that there are three feature list entries: > 1) /sys/fs/f2fs/features > : shows runtime features supported by in-kernel f2fs along with Kconfig. > - ref. F2FS_FEATURE_RO_ATTR() > > 2) /sys/fs/f2fs/$s_id/features > : shows on-disk features enabled by mkfs.f2fs, used for old kernels. This > won't add new feature anymore, and thus, users should check entries in 3) > instead of this 2). > > 3) /sys/fs/f2fs/$s_id/feature_list > : shows on-disk features enabled by mkfs.f2fs per instance, which follows > sysfs entry rule where each entry should expose single value. > This list covers old feature list provided by 2) and beyond. Therefore, > please add new on-disk feature in this list only. > - ref. F2FS_SB_FEATURE_RO_ATTR() > > Signed-off-by: Jaegeuk Kim > --- > > change log from v1: > - adjust Eric's comment > > Documentation/ABI/testing/sysfs-fs-f2fs | 29 +++- > fs/f2fs/f2fs.h | 3 + > fs/f2fs/sysfs.c | 196 ++++++++++++++++-------- > 3 files changed, 163 insertions(+), 65 deletions(-) Reviewed-by: Eric Biggers - Eric