Message ID | 20230322165905.55389-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 j10csp2453923wrt; Wed, 22 Mar 2023 10:04:40 -0700 (PDT) X-Google-Smtp-Source: AK7set8ED56PDMZ2TTQRRwDCvADJFBlviCjjTKG05/LLxO5ccPVGERwa1x79bewIYnObXcP4xL0Y X-Received: by 2002:a17:906:b084:b0:931:75f5:36db with SMTP id x4-20020a170906b08400b0093175f536dbmr7370858ejy.11.1679504680054; Wed, 22 Mar 2023 10:04:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1679504680; cv=pass; d=google.com; s=arc-20160816; b=LcJbZ1wXRFARsVDah2uzribWGbyRQCg12hEOHeGyDVuKFN/Sbq2CQiZfkho+Xwm2J7 P1IPxZdAE8XWSPDJwpzw2r5yn8STRfH+e4CRxKoSXrzDFg8SpU0NNyKRacbe8pqgzSXJ FU1HqyT9w1dCO9uBZk5omd5Y+6KcCdixD9Gt3rJK7Vz/LAxer6zsj2/IwYogAhWumyaa dsyRyyS8lK3mUudII5spVH+HuwGcfGqLQEHjk4ZR4ZEMNMQXoFdXf3q22Vxltcmm+lKG fiB+EfPMAdrWP6+npjFU9/tOEgdJ+uRZ4LgzrGtkkeCWEkUhaWNF/bGacWQLfJtd+8K7 ecvQ== 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=B7qdrNf57IQPBt7ah5OOoJx0fs/rgYAXaMlshR185MpKUrRLFx82s9ieHX1AFF8Iho nS0d8B+oDZ5ESVK6t7o2j8GpoFVcESlHi+C+3K2M5telcTs8k9r1+VG3UKvm8lFtXMz5 MKt0jr+371gQBh7OsZPbKfwJeZJeEtUwFDUET1lJKaWuVgo7sNjUBhd47Sgu8nurjGpp O+8G5m6juGHHe4GksVsEZD2LnJ8ySQ8FxPUsPFWOYOXasfXYAozdmtW5FWezE9UDgVeO osaTybNM55KNLK+V/d8TeLlsM4dR9k1jJA63r8UEjuXxywbbOw2/MuA2M1JGsdyEaSzO jkqw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=c9lb6r1H; 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 z7-20020a17090674c700b008db13af5641si13361633ejl.261.2023.03.22.10.04.15; Wed, 22 Mar 2023 10:04:40 -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=c9lb6r1H; 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 S231308AbjCVRAH (ORCPT <rfc822;pusanteemu@gmail.com> + 99 others); Wed, 22 Mar 2023 13:00:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231350AbjCVQ7u (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 22 Mar 2023 12:59:50 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2094.outbound.protection.outlook.com [40.107.117.94]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 461BD61AAB; Wed, 22 Mar 2023 09:59:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=J7xLpHYwOGdK5ug/T998yB/7RkJgrgLuIulV9r2BXxLhLlSq61FGaVUdaAOEGqMBwQYkSk2h98ot2J+4FPEXEcfiZ3CYHKNJOIhQUp64CL+ca6EyC/66XdWDJOO8Is3w4w8D4IvHubRPESZKua5KoPV7mtCOHY7ILim2CtHeGYNff+KzDto/Ous7Dv9RI/oohhFaatDh3FpHHgZZpmZgwVESQ+HTpque4YpDREg3yXYbODY9XIp8D/N3BXWPhxrIe0pfEiH5YmK/VcJCNJ6AjT49mRytGUCJQ4Ei9zvU8nSy1886nRkXTfQ/w6TqA+GRlJ7ltrfCXfwoV3cEy3SBrg== 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=FWDIv8fwiEHcMKMKR2ev8dd/q744mP1zMGDbQwNV0h7iy5Kk0DNiQwEQsIBB8jl6ZySHIf0EhtNARwSJtmIwMyZ3bgIbK+BN18EIwHzNGcyWK4sQ3CpYP/2wXcSSFfpwAnTQL1a1DP8b/RUXa3pJYAHGRI0J0oCpveMZZEZc8BWcePrKT+8IYMMEFrn7zBQ5G4YjxKeLZ0ARAOXQ32hGYrtCy+qD5nIPAiUk2fG3So0F6SzA9hxk/F9Nl3eMgrwj8YEcEjn5/tZhayq2KP678Z8jaW2ogHK5KvthrTGoLnMN4xmwDDHxtZ79Ae1X+7xNfnftcgh6fBZ3VfEF2pGEdw== 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=c9lb6r1H7Rpv0moDMTBx1tBnGVjIsfssaS8/Z8FHEvlCkfn6yUSPp3AaE24JaeVZhv9b87lTHz9Un3KwsPGWcaFspcE2LxHkgglsVY14y5QS8U193SChy/ZJyeelole7/qVT9FGHmUljkfdwuRDFJIaQS52EL6fyVr5zKNSvOeS8IYhCsQAjEVLyp6boRy+QirxVQdu+WGSUJX0SRMK+HQg0dd7LFGFUB/dNpTsf555woq6TlxYqQtM0wCY2jObh6XysZhNwbnssbHZmEC2RS3H4mIecn5KOG9eF9nAxzqxShQuxUPcXD9y8uqv2NY+7Hai040KIwzp4ytkT1hgUJA== 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 SG2PR06MB5238.apcprd06.prod.outlook.com (2603:1096:4:1d8::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.37; Wed, 22 Mar 2023 16:59:40 +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; Wed, 22 Mar 2023 16:59:39 +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: [PATCH v3 04/10] zonefs: convert to kobject_del_and_put() Date: Thu, 23 Mar 2023 00:58:59 +0800 Message-Id: <20230322165905.55389-3-frank.li@vivo.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230322165905.55389-1-frank.li@vivo.com> References: <20230322165905.55389-1-frank.li@vivo.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SI1PR02CA0012.apcprd02.prod.outlook.com (2603:1096:4:1f7::8) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|SG2PR06MB5238:EE_ X-MS-Office365-Filtering-Correlation-Id: da99ab68-5a3e-472c-a988-08db2af6d31c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: g+Txg/37YzT4+X3Eygw3GS4f3rwgKPGdVxMClhKnPuh6c1nnl+uJ/yS+k1xC37s4DDtn9AogFuAGIlP2W1pKHH/6btGAcDawNBGteJ61vzwaTxciX0V+9W2VRiLkkqGS6GuxUYMD9J4kyQqvKoqZfDU0p5gcJ356Bq6ADkFHf7RL+8JPrq+1tM39FbnHkQTwO5Nn5hiByfMkuQdO01ZPUj/nXGTDXVxOOr+WtWZctIr9m+y04Bi0PSbVsUr0arZUCBQMIXOmnN0NOrwRrBBll23Y3lITzA1qNG9iDGP5/EOjuYPG8lxzECF7Zjg86BsiHMcOW8v/3cVpBdm76sdUE9LsYyYciWeoYfyDaXlCqc82hBo/BM5DGmLTCf51FRf3k4GeshevHXKWJGP2sVOtrjux1iybH3npUkBeWFNGlY483bI7V5Cz/yEqsO2dTNK0u9JVSIDsi9dtDu7ctzIuq11TN0S7nAs63GfV28DKCsyXgQD/IZ7m4RE+fKkm3vo+hiZrF8+skrlP7xxsFRXbtMHfBBntu1poeEK1rPSZ7jlTfw3fOQDJ2BO2TgQ3VISQAJtCXrg6iPURiLK4IWInStp1roYSEjpqHlmKP9VDm+wOTgtPogzX79TZuZ4yb4c2Uqc/mrO1RGIusns3pliTn3Bk2rgnMPv4QfUcGKOZV3D08/t9eGj/8hhsAztK92vyQdVX14BNr89YCKrSpipROg== 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)(136003)(346002)(396003)(366004)(376002)(451199018)(2616005)(6506007)(52116002)(478600001)(6486002)(6666004)(83380400001)(110136005)(316002)(66476007)(66946007)(66556008)(6512007)(26005)(186003)(8676002)(54906003)(4326008)(1076003)(8936002)(4744005)(41300700001)(5660300002)(2906002)(38100700002)(38350700002)(36756003)(86362001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: oFTngEOiHyR2je4N3zLoLge8Mf/kA2dSlBxmb2bR1dYy8guWZIW2ACpGZPODfYn6fz9hRy7igZAJSG1iy9W8kULvkxXDLiqcZORJ/kmsPiUP6caYak66tVZIbogGnUvzKqSuA7baLKochSzsezgmoG7D88MSpnPQG65eUfIWX6KVT7kd6/rHi0cU7j4wz0CGnv1P6w8q+LCpTcWZ0RkE84Fj8DbYkahnN7c2yht6Qijt6hZ4QmpqeZfN/3Aae4ZT6EEV/guIxXYrweO0DiR1b0zseE+UYbkEkIxB6vypB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QUW1UmzDJ452t4Zrm1m5B5kw1Cs6rYnXAYQ6OLYeYYXmBwNJsB8Z3T5poY9/YXEACeZ05dEltPqSpIoMNOjayQclx5NZYmmAFHb5DWJIOoq+aEfJuxiRdMQMxPhTIDPcT+pefq4yHv+CusUkTC3shYtZ4y0fGnOoEyiNjxxQnLCiBUztUzjekXmYOiJ5gp4z9IWRmExiT15ME3ZoKMQRz X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: da99ab68-5a3e-472c-a988-08db2af6d31c X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Mar 2023 16:59:39.7592 (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: gi2U7ZaR7deqhVriXbvHyMpXVpj3dqfbkk9a3q99UzSTwvnaWEOMSXhRBidKzUNWzch14uTt4N88xDzvy+XKpA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2PR06MB5238 X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_PASS,SPF_PASS,URIBL_BLOCKED autolearn=unavailable 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?1761088299589377486?= X-GMAIL-MSGID: =?utf-8?q?1761088299589377486?= |
Series |
[v3,01/10] kobject: introduce kobject_del_and_put()
|
|
Commit Message
李扬韬
March 22, 2023, 4:58 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(-)
Comments
On 3/23/23 01:58, Yangtao Li wrote: > 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> Acked-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
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); }