Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3414096pxj; Mon, 7 Jun 2021 10:01:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxy4Tbsqq5jdpRSk0Dnglc5HqgTJ406ggRQ2xxoUw7tfCZordAx56XvZGsvBJ60AZeg2O9/ X-Received: by 2002:a17:906:9d05:: with SMTP id fn5mr18766912ejc.133.1623085272267; Mon, 07 Jun 2021 10:01:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623085272; cv=none; d=google.com; s=arc-20160816; b=DGOUnA99rHqSNc6Hls2fmy31pW6mjg8UEG5aNA6ucki9E4bhDQSCBsR25NyxRUd+eJ 4P9B1GX7pBUrDNTRmqw20ir2CnPrsid5ZVXbxaRTUj3NU1RdWpolR9PNn1SkAW+ixnx8 4kAveghLAoKBVLPTEDFLxZ6ZcwN9C2cmK/VHVe0x6xOfHKrOn1Tl1OzAayjbYUkU4oZH zJRwztnyms9MDg9ptkA3XtfP8BQwMgvV1etGBCpOUlOdX4Knv7IE/MObyyY04CGZWpSO MuG0u8Ylssh+QvRNTAXo9QpXUzlbWzWHbjxL2H5cuTSYpIWqFB44sCCQolHqLHvzgVR4 aBfA== 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=kwUPqwMcLKnOiGuTJSAVFbnwt1076LmJkRKsd/LFwe4=; b=T76QOx9kOEzdyRNfoUdSIuaMPGbCTsLM+66y5EEBU5K80Cc7VapednPN9TPYtAVXGj ppoz6QX8O4QLHq2cBmNuvB4dzavvg5vifFl5C5R5v2nxbMx5Rjp30uQkQ5KMzcGUwa/B equa3sR1v4Z5kASG80Om6T7/umtJKnBOzDS4Zj+KrJrYK8uJ/r4W8vasCosO93t6fAUZ gb5Kfw1RAEPjY44BmYWnGp2oY2F4Vg8QQGkxrU5CjRMdrFPpgWvUZ71BsOhXis1d9a1H hmHSyP4bzd1AeeM//TyWFccRVOtzVqbYNW12bPtZuoM3TSOqUorMYKBJz7euveC0crEB d18Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KgtpeJ8q; 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 o3si494720edc.246.2021.06.07.10.00.49; Mon, 07 Jun 2021 10:01:12 -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=KgtpeJ8q; 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 S231268AbhFGRAN (ORCPT + 99 others); Mon, 7 Jun 2021 13:00:13 -0400 Received: from mail.kernel.org ([198.145.29.99]:50534 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230446AbhFGRAN (ORCPT ); Mon, 7 Jun 2021 13:00:13 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C06C161003; Mon, 7 Jun 2021 16:58:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1623085101; bh=3OHaxHnrqCqFc0XRzdeLGi3zdP/7IfOv5Abe7zqPa7A=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=KgtpeJ8qZx2HSNVeYNsZuWDcOfoWb8mf5uM9QGjl321kTmaTz2y+ne3B6ie9cs1K1 Wvt8sm9k4C2IRs5qFpMiSS+aCiZpfpHrCKBnoRlQ5sshUfPDLXELSM88QG32nMlzHw oa1TUkrfZoCsCHncc9DFm035yv2rk0QI3wDzVAhPUFMm8p8YxEvGL+fMVjCxxJOrKH 5lF1rQqOb3rpfy/p+pePY1x0hnKCsCk9yRyHynXyo/2iVLu4OFqwyMyioCvKinnAAc 1t7LoUWMLrfxoTYyi+IvTJxKf1UDz9QxZPglFf2xE8EorawrGmuEN/8sKyTmTaeoxQ sI2CIj0ccW2NQ== Date: Mon, 7 Jun 2021 09:58:20 -0700 From: Jaegeuk Kim To: Chao Yu 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 06/07, Chao Yu wrote: > 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. Done. > > Thanks,