Message ID | 20230319084134.11804-3-frank.li@vivo.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp640999wrt; Sun, 19 Mar 2023 01:50:26 -0700 (PDT) X-Google-Smtp-Source: AK7set8grOyXDlOLO9YmDtNB68SPtmwPcmiunO2uWE/+5J0DIUFemD4cGuuWleih9XjIRVAL+zun X-Received: by 2002:a17:90a:e7c3:b0:23f:4dfd:4fc1 with SMTP id kb3-20020a17090ae7c300b0023f4dfd4fc1mr10182609pjb.43.1679215825828; Sun, 19 Mar 2023 01:50:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1679215825; cv=pass; d=google.com; s=arc-20160816; b=0N0jgwtJ46dDXa0tjeeEzkSjOSgrsEJvmZ/M+9qyBS2Kogfzx5efCGl5iZYMMdavI8 z1OkgXl6ecrynn7uRKcASp9Why/XCXraYjjWn8AwXaJiomrqRnTAeZc/R4mSAF3Kl2BN lYLJ6wLNVou2zX7c7QSFOCrmcHwKNO748v88/MNKTuATJXJqmfd9dDtWAdj1Ypf1f10X M+9fDnvnY4qejBEYhLfjYXOYnVrCDGzPuPIpqrkWz4ZSbXb6L2CQzz5Q6DILGkuPkyUD dog9EruqWpFPESx2ZoJC0o8+fZFuQ/NHZDELQDgEPGj06ke/f8VaIvVAzRQ4xQZt+kT0 +khQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=LhVLGznBksksos1LREE3is/hDxk3CkKEditIjWVYL0I=; b=TJGwP72WW/w0sPwm+z4q67QY9RUIwTvliyAGcTS3/icILFYtgXRzRW+UIOOwre3ieq +myET5LYemn06gSx6rWvS/bC5DZlk8sxW3ovBKV1Hae5Yj5vOyUTMkCccDLE6VR9lpiJ 9KiM5L14zCWzdeKNqP+xXTFfbLUYWYqcbu4LLfS9PhOHRqHD8XqT+5ZqMuqsec0/OWKy o9qNF9/GjTv3HpgJj0tTo2l06t70vZnThD1GzUhycDO9mypm2DGhhVutTR38frHRS7nS kM9PMQO4XB9Ypb3if0rrr/+TeCqhrHjS23mSCIvYNN4/rMaIww2bsh9nGP+r+YtIJq0t 1ZoQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=qBqmJJTz; arc=pass (i=1 spf=pass spfdomain=vivo.com dkim=pass dkdomain=vivo.com dmarc=pass fromdomain=vivo.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=vivo.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bd12-20020a656e0c000000b004fab1ea0112si7700538pgb.528.2023.03.19.01.50.11; Sun, 19 Mar 2023 01:50:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=qBqmJJTz; arc=pass (i=1 spf=pass spfdomain=vivo.com dkim=pass dkdomain=vivo.com dmarc=pass fromdomain=vivo.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=vivo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230173AbjCSImC (ORCPT <rfc822;pusanteemu@gmail.com> + 99 others); Sun, 19 Mar 2023 04:42:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229861AbjCSIlz (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 19 Mar 2023 04:41:55 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2098.outbound.protection.outlook.com [40.107.117.98]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E15F1042C for <linux-kernel@vger.kernel.org>; Sun, 19 Mar 2023 01:41:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZnyxAq2WupcXNIRMx+xbO6jBYXoSH6RlxYWjc2Zg1D1HGPAKdvF2etjfEqYc5NS2qAwP/BfHiT9X6C/7IKn/Hoz9CreX+V0zzz3/CzPSIZcwDuqhF5pPEr554sTXHRv0dNfJ3FcSdj4xYWx/GkhyGDWcsHOPlMrcbdktu57wazum9kJNiqXPzV4M352w9xnDReKvbjrxYbBOUVjOsncpqohHssjUaKVQUeLSnahCO5HvDmaGRh+gpsMu1kHN/EOfXEKJAvylZAtnt811eZF/U0MnuBlzR47R43EbIZ/HH8McxlpGUy+2FDUB/PEW57EK+lZ7Ly/enPruIJBwnkOPiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=LhVLGznBksksos1LREE3is/hDxk3CkKEditIjWVYL0I=; b=DhBoZEiDk4Zva/KPdXOZ+Ee+3sAAd/by7Sg9gDaBpO5PlPPcnm5Wnnajn+kkmgvJuptkM5f0LhXGXgUhA4ApK+9A71bUIWid0vqEm7yZ89jhjZkphZ20JiQoODIPp71IHN3yA4AsnPQY3Jba6pyjFwpmO7iumMEAi6OlMJYpg8pamFxYK4pJVr7zbxpozOuZLZOivicYVUoyUjm3IEYXKIQFvUcuPnn/QJ+p4Vt0t42UiptsoCKTv2IrEXwzxXBzjzsdB8UtiQ/PHTRcb5QKKXW/WISQi7FGt2pAdCAtW22Sw8GKPDM+wZnKdTpyggpp2NI8djtxH5d2s/QdH9FnIQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vivo.com; dmarc=pass action=none header.from=vivo.com; dkim=pass header.d=vivo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vivo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=LhVLGznBksksos1LREE3is/hDxk3CkKEditIjWVYL0I=; b=qBqmJJTzUQIvKbDOdl3xhM66cbEryL8Leo0uULuWJiywJxp96sHxIPAx/PWHU1jlLPL8UP0RV8ET4SwCu0DWdsmSQiEa8uaRdsWil+d0CEUO9WtYisDX0hzSkGonV0Fd6W8HmY6whk1bpkCWbJFcqmI817mUEMoisAxxB9Z/eCJVcziFUK1IhiiIXeJLHuzh3T3RI1pc8RxD1NTOJ3PQlNidSmMp14cojT1X+wjDMys80RuweAsR2JZnU/oz4ySEum/mcMndAuPTRQKcyv5ryuY4xQEdDJ1Kba4b9ecBu7c+O9JXvFxHh6sIs+U7jdBsszX08WrEY5QiTEhkr6USmw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vivo.com; Received: from SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) by SEYPR06MB5350.apcprd06.prod.outlook.com (2603:1096:101:6a::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.37; Sun, 19 Mar 2023 08:41:53 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::daf6:5ebb:a93f:1869]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::daf6:5ebb:a93f:1869%9]) with mapi id 15.20.6178.037; Sun, 19 Mar 2023 08:41:53 +0000 From: Yangtao Li <frank.li@vivo.com> To: Gao Xiang <xiang@kernel.org>, Chao Yu <chao@kernel.org>, Yue Hu <huyue2@coolpad.com>, Jeffle Xu <jefflexu@linux.alibaba.com> Cc: Yangtao Li <frank.li@vivo.com>, linux-erofs@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 03/10] erofs: convert to kobject_del_and_put() Date: Sun, 19 Mar 2023 16:41:26 +0800 Message-Id: <20230319084134.11804-3-frank.li@vivo.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230319084134.11804-1-frank.li@vivo.com> References: <20230319084134.11804-1-frank.li@vivo.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SI2PR02CA0033.apcprd02.prod.outlook.com (2603:1096:4:195::20) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|SEYPR06MB5350:EE_ X-MS-Office365-Filtering-Correlation-Id: 57fcd48f-bf40-4ad8-98c9-08db2855ca31 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: yflELsa2m3GZA3i/uz9G9zrQPBTWdaEL3D24iGjcECpxZC5kKC7SYHCo8dqD2pcre2i8obkEtzRQiDIvdXUvQQNRodyRHmWxvWnFYZzDwNZIRuEA71/hqwk504D3MVL+ZneSDYJQTsv9J8yvyaXcDN2+JVo9MzGO4u669Gxe+NSCuLhrGO7BFjl+2g79TW3s1JP3o7TFLU/uiVfRMa23OgIln7WjQfUrZRDzVT+c99NMLekeo2wPF1HmycO77oIF0ob/1Za1+QJZeTsWRs/ZuUeCrJSP/wb50i3cIHjp+3b5P48d2Tm86NWxx/iGQ7dBbvpVy+H+adln+UTZol101m1gefOp9Q0VQDTxmHng9Hq4cqGbdWLmKKhrCKUucnbepaRq4RT7+Z+SMwvxvmUet+mG1s0LeH5djtGPG5DeHmW0PIBl9/111SwpoPpQZbDljIGCw4t9CNyk9aGY5+hzrbA6/xKb4Qrd5/FFuESJCBUVqwUHLwoX/XfjI1zsMZPg3a6V8Zx7eUG1TXUmxJIJIAkwxl0fql1mnW2kIhXk5QyKOeEF2NKRncqPepqDe9QkhgFvUYKNhJzVDVoojzIIfK/NGFr6RuG0pq6Bw/3kiRKB3ufmwaAfGypUeaEirmFdK1OF0NhEkNdRvZHIzdJsbLjMM7WCW9t/hx/dY5DQjGrGyQPGHzrjXbOKMHKCcXZHKNrwGuOPAuyGqOY1ryrikQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SEZPR06MB5269.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230025)(4636009)(39860400002)(366004)(376002)(346002)(396003)(136003)(451199018)(86362001)(36756003)(52116002)(83380400001)(316002)(8676002)(4326008)(66476007)(66946007)(66556008)(110136005)(478600001)(186003)(26005)(1076003)(6512007)(6506007)(2616005)(6486002)(6666004)(38100700002)(38350700002)(8936002)(4744005)(5660300002)(41300700001)(2906002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: evVpKhuWuJQXgwny5SjqZMRl8vbHamMLTHEY+O9kPfJLl/B/dPbSbTgzMu2hHu8XzQUcVQ9zyeuLL1QERuy7zjZ8U6y3bNl8uvbECP9FRsY/S0K0L8cBI7u89LMdurUSorqPyl1zuv2UqhwX6JdBdNtcIgWvu3cbWx8CotL4cv0yV2fQ4+FsYDtsauRJtJ11qdBcXrOwqbupMYy6q6QCvCtI83VTh2mP/0ShT84SdehZJ0A4UHNxkpKgYEybKlNMWxR4uWRzGEsTvNMI/kOKAtL9pwIvUxs5uX8UM/I7+eT0SjtZNE3DbSKDbpv/LPtgnwQht+Vx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XmORo4TfZfsPzGfmF9LZijIB8J9tmeW1wmmuDnCy+VRRMLtfGsgmfRqIGBvZmvXolOeOY1rGFL+qgI1ty4oQ6LW6U5sNJhj8h7JJVhBxtQr8gPbTL4UsgPtyIthirvVeLgu+79HSGT67UY9CJei0haLcIZBAqe9KTTa8f/NVYBu0kW3CUbzTbRL6jWw814knAfe X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 57fcd48f-bf40-4ad8-98c9-08db2855ca31 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Mar 2023 08:41:53.4198 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 923e42dc-48d5-4cbe-b582-1a797a6412ed X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 1kEDnVVP1cYnDK1IbzVhWFEksguEsSAta/0/QLfDITfCFcgAIVWuj2RX8YypDbKH3GX4iYxgExysByZbUDokRw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEYPR06MB5350 X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,RCVD_IN_VALIDITY_RPBL,SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760785413645264565?= X-GMAIL-MSGID: =?utf-8?q?1760785413645264565?= |
Series |
[v2,01/10] kobject: introduce kobject_del_and_put()
|
|
Commit Message
李扬韬
March 19, 2023, 8:41 a.m. UTC
Use kobject_del_and_put() to simplify code.
Signed-off-by: Yangtao Li <frank.li@vivo.com>
---
fs/erofs/sysfs.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/fs/erofs/sysfs.c b/fs/erofs/sysfs.c index 435e515c0792..9ed7d6552155 100644 --- a/fs/erofs/sysfs.c +++ b/fs/erofs/sysfs.c @@ -241,8 +241,7 @@ void erofs_unregister_sysfs(struct super_block *sb) struct erofs_sb_info *sbi = EROFS_SB(sb); if (sbi->s_kobj.state_in_sysfs) { - kobject_del(&sbi->s_kobj); - kobject_put(&sbi->s_kobj); + kobject_del_and_put(&sbi->s_kobj); wait_for_completion(&sbi->s_kobj_unregister); } }