Message ID | 20230320184730.56475-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 j10csp1390438wrt; Mon, 20 Mar 2023 12:17:19 -0700 (PDT) X-Google-Smtp-Source: AK7set/HJxnBKXGfmuwSxLoTHS7HvsqYTBdOR5AuMwbVAR24SYk/WR6k4N9shjCiDfpl1t3wgbSv X-Received: by 2002:a05:6a20:6690:b0:cc:92ee:b119 with SMTP id o16-20020a056a20669000b000cc92eeb119mr15701481pzh.45.1679339839351; Mon, 20 Mar 2023 12:17:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1679339839; cv=pass; d=google.com; s=arc-20160816; b=b2RKHlgKfPJiydBEJ/Aqfsqi8f0bD0d+a/GVyeqqoZuIin3SEZFO3GuPfXpQQdCNQW h9k8TLyuQyjbPSltq7FHQxGTA6FU6aoS3GtgW0Vw2VUH59K+EjvQ0MnknOi0cpSOdxIB EAbkpooD6eSPd1TtxN4xwNaMR0siBZmWmlj0IW1nLTglzDxAGDs+RyuznuX5ZVNz52IZ QjGpyOEtFmjpFUSkHlYkX3X+aiN5ZLPjvquwFecz4ipu9w4QQKlYyQt871gAdN3ZmmCu Ueu7FsnjCoRVIbmKeYNm3b4G5qF46I/XlgCEmMm26P+mFgf7V6WAPiOSFCaqoK2zl4n8 3Izw== 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=1ecBOFBL5r+bnKKNsVchdUNnMVHFYGZmRu2mS3y21Ns=; b=kcZeydRbTQIc0Te6qKtbem8AiiIl7LYn+Qz4H4sfB2JghTykR6a3r4QneaSXXo1RAH x86UT/bWE8krZnp1O/Fze9294TfeGcRGFlQOfATZzJP7blVqCMNjaBMEi6qALDLGVCUc mpzWBXrO83RD/eja6Q4es3hkRzT406SQ9Cg4wtTK0cUOgVOsNj2r4t0tqsYo20RexDmY V/kTBEbNuA+9OUAX4j9Bydwr/WxRM4nQbYpI4qTORJ04h/DMU4wSsa/SciVuHvwCq0MI QBZFhyCA2WjsseqEHVFAEMF7xu9zAdW/+P4wguuoRdd/7yPUAHs3y573wR59xde5crSB F9lw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b="Vj/fLFJx"; 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 j4-20020a632304000000b0050301265ffcsi10918376pgj.471.2023.03.20.12.17.04; Mon, 20 Mar 2023 12:17:19 -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="Vj/fLFJx"; 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 S229890AbjCTS4N (ORCPT <rfc822;pusanteemu@gmail.com> + 99 others); Mon, 20 Mar 2023 14:56:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230451AbjCTSzq (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 20 Mar 2023 14:55:46 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2104.outbound.protection.outlook.com [40.107.255.104]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BDF01497FB; Mon, 20 Mar 2023 11:48:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HJyBzpAjPO8smDQqmQnFsqbuDEMADjOP/bWFouWF8ijDBtHLk8tCzpUa1vE6hhRHH3e1N1bxABflyFm2CfIMVcF0dL5IyyWHMd1j7spsO9uFVENdiH7iT5hcYHVK5at+7UQzjAKuVAkspWcxSOoOtHsJQLv/uS42gcCnM5WfrjsJp0gAXfPLJ6kYpiQATi0eAq+Awm0qLRwOoo259xL926FfAnLsYqAidYWzVzsfnu9KyQGNqQspzqBmj3y6KEgZ96lSzhFvfCpnYQFLYloF+nmIovM/IYxoN/O4twMoijc02PrAU8JdW1rLbFUvljJEeyKuwJVZyTjhhBfuAV1v+w== 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=1ecBOFBL5r+bnKKNsVchdUNnMVHFYGZmRu2mS3y21Ns=; b=Hik1h9NVx+wXcJwiaR+TJ4/y+LqaK4f2fICMLMZonr5Af/7Splz9y4Doeb/ntOapBAc75fEKYA6v1vzfSh55PSpxEde52wO/pe6eAteDw3QFCoaKK0+ZoaDpzUMDZmkoqG8qKnkm6yH/GvRSlVs19Ye38NJkgat7Ge4EUYHd53wzM6hWxn4uIWWL216qGB18HxFbgJCgRZ0gaOrenyWpkPMnT5x+JpsLELqxa7IMxS5zx0ukt7TiB2Z37LkBsvMW+hQXsWfQrXXJfgVQH50M/Oa6OCbdVDGpK+NXLLovixmtFWAqXVzI4lPzwJrdrLaHpDb/83Cw/rzxNZWtV4mzxg== 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=1ecBOFBL5r+bnKKNsVchdUNnMVHFYGZmRu2mS3y21Ns=; b=Vj/fLFJxQO0zOHsaFV8gRCunLi68HW2s/4/ZdKTnLOIpt5zAFXr8NyanE9fMqHv+jlr+wx/kvBk2dyERVG5bsguItI57deVE3AP1w/RHtKcinEia4pB6htyTznJWprneqnKxO/m/ohdh/n5T6meu/oAlzpQkNlFW7WNdJgN1gjaGub+T61gngNE3ypsM2js6Wp1hPGWb8kfpejKH5BymZQJ4yId83JIvdpltFayfwnoGgg4ky9QJ87x4b/AWzBHWUoQ6jUVFse4EHviuSwYYOwXunXR9g2B5uIoSXqKAcDT/LnpmGrTvbpf3DSAiKfv+1AwPjJ8F/1posD2+NjjQRQ== 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 SI2PR06MB4121.apcprd06.prod.outlook.com (2603:1096:4:fe::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.37; Mon, 20 Mar 2023 18:47:51 +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; Mon, 20 Mar 2023 18:47:51 +0000 From: Yangtao Li <frank.li@vivo.com> To: Damien Le Moal <damien.lemoal@opensource.wdc.com>, Naohiro Aota <naohiro.aota@wdc.com>, Johannes Thumshirn <jth@kernel.org> Cc: Yangtao Li <frank.li@vivo.com>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, "Rafael J. Wysocki" <rafael@kernel.org>, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RESEND,PATCH v2 04/10] zonefs: convert to kobject_del_and_put() Date: Tue, 21 Mar 2023 02:47:23 +0800 Message-Id: <20230320184730.56475-3-frank.li@vivo.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230320184730.56475-1-frank.li@vivo.com> References: <20230320184730.56475-1-frank.li@vivo.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR06CA0215.apcprd06.prod.outlook.com (2603:1096:4:68::23) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|SI2PR06MB4121:EE_ X-MS-Office365-Filtering-Correlation-Id: 0bb8c531-5cab-47cf-0a73-08db29739b77 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: VftqllsnXCbrYT64d2k44dYr15JCHjExTvhZhcYIcXTjlQvJ2kChE0RFAkz9EacOclkTPIi908XFnEsgqR0CPEkpsl5AEuzKj+6gSiM5XNwnzzQ/wqHg4VvcmX6E2h4nb27IRr2Bd1dHNmeCLUAlcpEn/LSTcMzy0ztHbDq1V7KioThnO1cMMxEJb0bufks9d2mEivF7Fw+ZZZ11fWJ7g2TAmInog92kslGPrhAVYf4P/xdMJjqdQby+ymyCkeVGx6ojbB0FbutJxrQ+NHpmUJU+vp+ZmnQNx+DOugXtrCYs97xe5PtzHlsbevJXWIa5C+gVodQXdTuXtYA5UTqYTqCuBfyAKe+8SMA9ne3LrQbkhDbGXS6xdJYpfM3tja80kkZlNbG+2IE44/Ito4pf6j2AlxHd726zrkKADqd2nIO2ILdYsLJPCO+FFAa3UXmEQL2T6718JS6hHJ12Hk5v+7VwucEWrh9+2o3YnIVCcSRq4lWTjM7Xq74z9cCKA0iRDFBCE6izfJbKPKMjajYBjRjprezKtz8xq8PTMu2dQEKG/75iIpMGz4HClXDp/1xlUGiW17uoIGdbphFGZR1bHpYu7462Nrwf2GND/C2O74LFqltIBASOI01VUbIEKgNjrZnvf7c/9Ftld7PzcJ24ARAHPyyKUoAqqsNZzemTtT6alCxcSNtQH5N3jtn+x1PHNab8WAobWwsac6tOWtmSEw== 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)(376002)(136003)(396003)(39860400002)(366004)(346002)(451199018)(86362001)(36756003)(52116002)(316002)(4326008)(83380400001)(66946007)(478600001)(66556008)(110136005)(54906003)(8676002)(186003)(66476007)(6486002)(26005)(6506007)(6512007)(2616005)(6666004)(1076003)(38350700002)(38100700002)(5660300002)(4744005)(8936002)(41300700001)(2906002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: NEVbuQKjwPQR6g4cPBpwa010gyR9Hj9jdu4RrdSfPlMj1O8Co+kTOMB+aHIt3d+XcBBMDYSoHT+e5DoNf5eAFHC/gjFOdbEYyLfKer3baIZhu9hO32yR97r8D/VDZXQIabj5Q3WoGbFrPTSv1/PGWCxHEm6vyTNHMHDlfqzpdJMXVee9+h/FA4kFWkOErKCpZ6tfF7mcUDFmihfNMTDs0zNtB+ZwI3HnRvN8C0L1cKtIhL1rqTG4ClYpd9hZ398S3otAHyBlWXQdr+ygBxqh9G4kpJstdZ6IcX2lGYvfKAJhYpE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zJcqFb90Rxatjo2dr3GpwOEffc38An9xQ74WWkF3BN8dTzScfxbItPGkLBkRLHy8oLudQLsQiCGUx6DRyNKsblIm4VlYnKUt58YlIpqZfXjlSMoL7YqNSQCdKCc9S5IBtPT12etfvZYRloHweRj/iohaudMUvcIdQ3EjcV6geYRGrxVkt0xlnZflLBc8onYUDzyil+OTFoRqr9fWFHnVRF X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0bb8c531-5cab-47cf-0a73-08db29739b77 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Mar 2023 18:47:51.1192 (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: a0aKkxEbWqIaJtMdOhlU601MK5JqyAGC2/KEa36hu82gAirMnMKmAefRdJdnBKko7AbXM+IQxJNXSszeQ0NVOQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SI2PR06MB4121 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?1760915451257629210?= X-GMAIL-MSGID: =?utf-8?q?1760915451257629210?= |
Series |
[RESEND,v2,01/10] kobject: introduce kobject_del_and_put()
|
|
Commit Message
李扬韬
March 20, 2023, 6:47 p.m. UTC
Use kobject_del_and_put() to simplify code.
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: "Rafael J. Wysocki" <rafael@kernel.org>
Cc: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Signed-off-by: Yangtao Li <frank.li@vivo.com>
---
fs/zonefs/sysfs.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/fs/zonefs/sysfs.c b/fs/zonefs/sysfs.c index 8ccb65c2b419..5e117188fbb5 100644 --- a/fs/zonefs/sysfs.c +++ b/fs/zonefs/sysfs.c @@ -113,8 +113,7 @@ void zonefs_sysfs_unregister(struct super_block *sb) if (!sbi || !sbi->s_sysfs_registered) return; - kobject_del(&sbi->s_kobj); - kobject_put(&sbi->s_kobj); + kobject_del_and_put(&sbi->s_kobj); wait_for_completion(&sbi->s_kobj_unregister); }