Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3285207pxj; Mon, 7 Jun 2021 07:05:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxXKQfbz1ffudO/x2Ag/9vFLZqRQnleMnig18trPOp8okHjWXnGBzeA4srzyksYzfO6p8BP X-Received: by 2002:a17:906:6bd8:: with SMTP id t24mr18409193ejs.501.1623074704262; Mon, 07 Jun 2021 07:05:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623074704; cv=none; d=google.com; s=arc-20160816; b=LWeHiD2V2EyFrXif4zfiA1Gx/TwLkgwRyeY6z0iF/z7i+W0KiO5eCC69arDJlz9deM u87/jNyYxjtjxfPtvWwaSkho8E8JwLY3i95NUJvlo6ogj5OivmLn9pEgupGmrjqVnXPK LSQuy2kfrFdddCW8jNm+tkmoMS8Nb9t71rtSsRsw56wtdysSfcLeU3xwDB6/XOfIipOH 9NH0sXMexlv0Ua4IsHSqC+SPanDOpLdiuGvceUQEOmhKPIEtdBXKPbbrn1wmxMjCqoT7 D+Xa0qAnxmMqH359KeBaRl0JiheOgJ3OXQN0/uqpTCRLIK9Cp4pSuoAhYM0DupC7VzT3 E+aQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :to:subject:dkim-signature; bh=TMcIcP+MOy+YAdOlAn0TCP7g+PlnGiY0ULuWixXAfaE=; b=riiq59Y/mosP/XMu031ao4HLnkddC/Czn64MhxEn5CuVJC6K45h9cIY9ajpbWnrgq/ jEhBu8e+MIdw5dpVAQ5zDgKrWT2pQqayYLCG/XmwQ9iqQObwbDMy53ItyzWu+VU2FKBf mRrhMG6EE8qOceWLvF7+7o7T6n4E8VTkKJHTt7wwSdf6KiJgiqTbcI3z87vLDYP/RXhN bIQvFkl+vZY2ZqBT+YNE/Go1h3f91z0IwdoXDgqSDGZcUMr9g6twiKpcB/F8Szo6M9b5 vpRBQTbKT8dVTBOeQ+Mkk5JpMtuv13tltnzIYPRaWNqN/2C5BVVgCS+gvivBHUg81RGP 73Sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gvG2vaVF; 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 l16si10725940edj.405.2021.06.07.07.04.40; Mon, 07 Jun 2021 07:05:04 -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=gvG2vaVF; 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 S230266AbhFGOCh (ORCPT + 99 others); Mon, 7 Jun 2021 10:02:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:60372 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230197AbhFGOCb (ORCPT ); Mon, 7 Jun 2021 10:02:31 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A838061107; Mon, 7 Jun 2021 14:00:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1623074440; bh=fb1SGOtDSePU0nH/toqqH2I5mjcpc4qNNrsdyTT80+0=; h=Subject:To:References:From:Date:In-Reply-To:From; b=gvG2vaVFv5OmgyWZ2YGypIotKmv6VX/GBD8KoBAwJd+yODAZ5xi5+FCPHQ7NFLwLs GktYBgTvYgT16rfQaiHKZHryWNcZRFjQ/dNfQOigRsFLFE9XJIY+bNIJp8/VJLsLxe KTDZ0Yj11kr7w/V8H1fcpCUKaak7TKCMs/Z59aJHR5ZiL76HtLeA14c9u9QDXRfEGA oxV1BFjt8PhyLFLvt6p+Cs45bCy0zoVeyc53d2f/D4GDKIMCrGdaxlSdYqcDMHAE2+ v8PgD9o6KphOJEGWWdnUWHMfaLxXG73ANTCv13FGILeywDjnPLtNkNHwjJYzXwMN7v IXkJQZndkeIMQ== Subject: Re: [f2fs-dev] [PATCH 3/3 v2] f2fs: clean up /sys/fs/f2fs//features To: Jaegeuk Kim , linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net References: <20210605003210.856458-1-jaegeuk@kernel.org> <20210605003210.856458-3-jaegeuk@kernel.org> From: Chao Yu Message-ID: Date: Mon, 7 Jun 2021 22:00:37 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021/6/6 13:36, 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 Reviewed-by: Chao Yu > +static struct kobj_type f2fs_feature_list_ktype = { > + .default_groups = f2fs_sb_feat_groups, > + .sysfs_ops = &f2fs_feature_list_attr_ops, > + .release = f2fs_feature_list_kobj_release, > +}; > + > + Nitpick, one redundant blank line. Thanks,