Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp521822ybi; Fri, 7 Jun 2019 11:58:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqwc1WR853IpgOd5W4T1fzWAgQkf0+xpBOuw5TmWqlyXw9QbkYyl2BicsiTEckR1lHDTxWbz X-Received: by 2002:a17:902:a582:: with SMTP id az2mr57022316plb.110.1559933912362; Fri, 07 Jun 2019 11:58:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559933912; cv=none; d=google.com; s=arc-20160816; b=KpAgROdZ8BknvBoMXUUwR8NUHme6NujLmQNnvh7UzlWJxyfTSlmfGywXWy3U1097e/ 8T3ZmkZq4JMjyDxVejfgj/tI9HJb9nWfSct9yna8C0w/YWMDpjH5QLKU3OgwWGdvVOIC Q/7fNB1gEAFyFZLmymCGkMObPDqWFDLcUul44Ih53fEWNPMuYTiPID+SrNssC+WnDdJA vMuSGnYcvSN0uZTGn3cN6LTFP9P/aQYF7ogCcMFxsUbF9dvbOuFaVYKoSWdpKy6QLY+1 uBfuW+iz+puDTqJCSLwIVjKL4ShnDerCRkert4fVP3oBAjSp9ukX5dREp1FiEYM6HlVI R3oQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=mZTYGju8Lc1Vw+PBsp6ZhKXJXzOEOqXl38jTX2RDW6c=; b=v763ZBAh5quXeAtkuVHOytQFb51Tdwsh92tkmM2jPF//ELrjKwPbeWqbaxZ92KGurP iAHuM/ohYQbs+C6whID9t6SuSvZSmfeCQQ7tfDVRL7rBVl1/ikIOL/0xvzZ2Mg2PsccR B6HCA/Oe8jf+R0Ddkw5gddI6hkmmw2YfqugybArpmXumOwAtic9PGFumx2XFe/cv216g y6ZTlkxfuhmZ5nD6MRijL6njJynunafdaApBFIuX5AyorKOGfozHTpPXUFg3cPXCfmf9 XZiZimf2eD5nx/VsVjGFfuxx0P8AnO7a4wbB67mz64I+f8+/Ne7aPHnZLneQ7iEEuYTu /OMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dXoO+OEl; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i11si3287093plb.20.2019.06.07.11.58.16; Fri, 07 Jun 2019 11:58:32 -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=@gmail.com header.s=20161025 header.b=dXoO+OEl; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730443AbfFGRlM (ORCPT + 99 others); Fri, 7 Jun 2019 13:41:12 -0400 Received: from mail-it1-f195.google.com ([209.85.166.195]:50569 "EHLO mail-it1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728684AbfFGRlL (ORCPT ); Fri, 7 Jun 2019 13:41:11 -0400 Received: by mail-it1-f195.google.com with SMTP id a186so3966383itg.0 for ; Fri, 07 Jun 2019 10:41:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=mZTYGju8Lc1Vw+PBsp6ZhKXJXzOEOqXl38jTX2RDW6c=; b=dXoO+OElj6Gj7lrthzGFiOpNWlZZTYx7AcrAJzNvdkaHweAMtfWrnjJdIZgEOSEV6P wWIc4CXwAqYEitGXtCNVqVBu4v0EsF3KJ3UJWrQrh7KdTKh6w+DY+qeHetFA7SbHSXhZ QYUKSPnflShdpZGed0bDiyaBdEL9NPZjPdCz8JCTQzMw1OpfJH3GyBc6iLBpmDieKEgf AJRdI9LGgDEXXZQYqrHmgS2zXD1QNiYmPEcOewshGVmdihS0US2IZ0A3thjqZQcWxMwL quetjcV+cUyeEXr+TFTKVO0aDPvZaO0ny6in/SN2wn+RKYCR5R1WiL2acXx7SDAzO3FF 3PrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=mZTYGju8Lc1Vw+PBsp6ZhKXJXzOEOqXl38jTX2RDW6c=; b=Xyo7qFYeo4wpWUSL9ztPSYCOe3qjLJoz6ROprg3rjRtiJwjc8eWN9S4T/fEQxmKIWf dU7FvTTrmovaEwcqp02mwwx8IJ/m6AcYZ35TWIUJnNmZ7N1VaGnA406CGxg519kXzVEL 84FDP8TiTI83mw7jlAks9XedRhQ0iK7yV3a7AUA8n8BYjLxeE7K8i0VZnAmiWbHEaL5e 8OD5+L1NR4cvT9z7lxyw5TjIjFd1EO9RRBPr8eJ/ydKYpkfpULhP8fk8OWwh9b6UO2S6 VfEea/zU37Mw65XiTkubUlEhimSeaRymaK2xNSVJrMgdR5rN/jwuP6v78s/dCJCZpmkc k3Kg== X-Gm-Message-State: APjAAAVVvgnhoe6PpOOM4Gys41HldqhgVwBYDskkUirt8DQ4pTzeTg/s G4QnfnXuosAeLqlo4I6zBXuLuT/0q2o= X-Received: by 2002:a02:69d7:: with SMTP id e206mr37601616jac.21.1559929270547; Fri, 07 Jun 2019 10:41:10 -0700 (PDT) Received: from ubu (2600-6c48-437f-c81d-59ab-a761-9e83-29ee.dhcp6.chtrptr.net. [2600:6c48:437f:c81d:59ab:a761:9e83:29ee]) by smtp.gmail.com with ESMTPSA id 15sm910997ioe.46.2019.06.07.10.41.09 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 07 Jun 2019 10:41:09 -0700 (PDT) From: Kimberly Brown To: jaegeuk@kernel.org, yuchao0@huawei.com, gregkh@linuxfoundation.org Cc: linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org Subject: [PATCH] f2fs: replace ktype default_attrs with default_groups Date: Fri, 7 Jun 2019 13:40:41 -0400 Message-Id: <20190607174041.11201-1-kimbrownkd@gmail.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The kobj_type default_attrs field is being replaced by the default_groups field. Replace the default_attrs fields in f2fs_sb_ktype and f2fs_feat_ktype with default_groups. Use the ATTRIBUTE_GROUPS macro to create f2fs_groups and f2fs_feat_groups. Signed-off-by: Kimberly Brown --- fs/f2fs/sysfs.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/fs/f2fs/sysfs.c b/fs/f2fs/sysfs.c index 729f46a3c9ee..5c85166677d4 100644 --- a/fs/f2fs/sysfs.c +++ b/fs/f2fs/sysfs.c @@ -501,6 +501,7 @@ static struct attribute *f2fs_attrs[] = { ATTR_LIST(current_reserved_blocks), NULL, }; +ATTRIBUTE_GROUPS(f2fs); static struct attribute *f2fs_feat_attrs[] = { #ifdef CONFIG_FS_ENCRYPTION @@ -520,6 +521,7 @@ static struct attribute *f2fs_feat_attrs[] = { ATTR_LIST(sb_checksum), NULL, }; +ATTRIBUTE_GROUPS(f2fs_feat); static const struct sysfs_ops f2fs_attr_ops = { .show = f2fs_attr_show, @@ -527,7 +529,7 @@ static const struct sysfs_ops f2fs_attr_ops = { }; static struct kobj_type f2fs_sb_ktype = { - .default_attrs = f2fs_attrs, + .default_groups = f2fs_groups, .sysfs_ops = &f2fs_attr_ops, .release = f2fs_sb_release, }; @@ -541,7 +543,7 @@ static struct kset f2fs_kset = { }; static struct kobj_type f2fs_feat_ktype = { - .default_attrs = f2fs_feat_attrs, + .default_groups = f2fs_feat_groups, .sysfs_ops = &f2fs_attr_ops, }; -- 2.17.1