Message ID | 20230319092641.41917-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 j10csp654702wrt; Sun, 19 Mar 2023 02:45:54 -0700 (PDT) X-Google-Smtp-Source: AK7set86kXBpAnoCOHoTF7CsUnhSjPc9LoJaanivxGLOyrdF5u38X5gZG1b6ySFkxheos2MNbVXm X-Received: by 2002:a05:6a20:4a23:b0:d7:7a71:ad5 with SMTP id fr35-20020a056a204a2300b000d77a710ad5mr9525325pzb.7.1679219154106; Sun, 19 Mar 2023 02:45:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1679219154; cv=pass; d=google.com; s=arc-20160816; b=iXwcyjDeTV5N2cNK2DBekjws8TQosY//fj7Rg/znRxsoUmnu3FxfkbzcXWfIjuLvqT 8mvOAhCWaWdMc/+Wr++00tCfIKRPDmbltWy59X32TFcg/rDr7qGnJ7pAKEctK1H/6jXu 0CnQSOyovbYloEh4gDxW6RudXmRyXj+6lADbXdHTZ3tfqVGpM//JT/DcdYBQhgnZsLJF IGdGsyXgxNteHgavQ8f4flihal9LwZ3ezjiEw9fJ+KS+jBt5c/dTDtR5fmEl8hIc7CLy gOSr2QevtFT8P+a1lW63kAhxk5qGgyefPKqpB9t4nH7Qpsc8rhBOvLlB6nAjV35iTcyR IF+g== 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=9dAsbB8HLSyPKnYY6MgLGkjsu4SEDUT5dyHTJRxvePE=; b=vXWZ+JAnASYHfUEf1S9PPT70mflDushXMoLXrWtVFJ03QplsoutjKm7vdrOaaa4H1Q fsqZyCU0jBkszQttHG3MMArDSdDQ8DJkoKbedgUdW1OzPC03G2tWMpTK06e7PNfuBk9m IBsdy5jZidV4zhq+75BALtn+DA3pcADi8V8AngljklDCCtkOui/N5gVnZMZWLeEOVNOX q3i54xTV2yMAlgdm9GzWzikXlMAY+kyWNIKvYl1RuR0Jh0rIAPysSxBwMgg4iWtezTWl CFajEqAEck/80MuKIVyTiEEnA1EPUXRPtWeYSxCRd9Y/XrT3eVm2rgSv06swDX/oVYOr j0Ng== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=ndoem+tg; 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 m36-20020a635824000000b0050beec91e30si7080949pgb.768.2023.03.19.02.45.38; Sun, 19 Mar 2023 02:45:54 -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=ndoem+tg; 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 S230000AbjCSJ1p (ORCPT <rfc822;pusanteemu@gmail.com> + 99 others); Sun, 19 Mar 2023 05:27:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33844 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229649AbjCSJ1g (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 19 Mar 2023 05:27:36 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2105.outbound.protection.outlook.com [40.107.117.105]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B63401A4B8 for <linux-kernel@vger.kernel.org>; Sun, 19 Mar 2023 02:27:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iqb29GcTJUCysI3rcc56fROhsQqwffcvKMdIDBe/zgKr8ZeyJtNaNq/H1ckyaIRF0pwuHI1JlJAYrxfxvu16/lCh+rX8o/iPweTtLld5eXquLsenWUZBfasxgSlnUPHxGtfPCU0WIT7W9+hMar1+r540HprcSisUQK2DK+02qQFNwnQjE4IXfM5Z3O/RVD9TrkS/HYeTlczzPcJawJSnigMa2HjK6KmnWKeSyZQwRm/P8wZMin/UN/L4aJPFUejU95BWvUUrrpYWzBuFwL+rmIo9wAZPdZjklscnUvVsvhQGAkpnBPXpgNIe+C8019ZlCS5PY1lgYKmK37U8s7wLzg== 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=9dAsbB8HLSyPKnYY6MgLGkjsu4SEDUT5dyHTJRxvePE=; b=cf8JflYD6uGzPLfwQyJW5FjKkdnd3GKy7/Vu7dABJ6ioBjeirFpOosYPnoh3EaM7EhT58eGsPjIRJpSsYomDo1yiHrSZZkjWS6tujndHNfQ9Htu1PgiYjWJ5pRpFKF8R+RiFwthBVcFD6oRnF70IjfsYKpIy/li/IkwDBJLvnLKaSr+9Uftpuge3GXV/qYxFMNI4NLIIf9FsxU0CKVM3lYU0vMNZJpt2ZfjYXa+kLIZwwgwNBxPZbcM4PLjT5V1XZ0cpz4f9uUf+i2XauxqKdKs8xAjEvLqUopNN6kiWRDnEEVoTs/zUj5e5f+oLJqNGHc7DBLs7G/4ReJifGZNRlQ== 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=9dAsbB8HLSyPKnYY6MgLGkjsu4SEDUT5dyHTJRxvePE=; b=ndoem+tg/oWKncsuhUBUc3B5gQwH4GXTS5vZKsFkwA3c1scUzkE8f1SSGGRbrRDv4lN4iBlQbgT6/j949spT4ALD7EmQn6o3VLUCMXAaCLQVoY8bAfSEykdarwRb4WX88o8WFlalhntbMGfPCmFh2ypdF+2j8b5B7qFhZdeVE8Wku/CJcR9cdxDrYA0IFN3IS3/F7n59fpPB3/+rtBB7OcK8A8W+nrICvP91ilYysxKsRGnQimUP1DRFnxaiX8OjvuRX7kZP3DeU5yDy3K3cs3T4bL6oz4Me9z+RCJlrhXwy7hQ2lnZ5247ip0k1O0pDVEHfvtPod9WW1OS2cAvlMg== 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 SI2PR06MB4012.apcprd06.prod.outlook.com (2603:1096:4:f9::14) 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 09:27:12 +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 09:27:12 +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>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, "Rafael J. Wysocki" <rafael@kernel.org>, linux-erofs@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH v2, RESEND 03/10] erofs: convert to kobject_del_and_put() Date: Sun, 19 Mar 2023 17:26:34 +0800 Message-Id: <20230319092641.41917-3-frank.li@vivo.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230319092641.41917-1-frank.li@vivo.com> References: <20230319092641.41917-1-frank.li@vivo.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR01CA0137.apcprd01.prod.exchangelabs.com (2603:1096:4:8f::17) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|SI2PR06MB4012:EE_ X-MS-Office365-Filtering-Correlation-Id: b88627e4-a901-41de-49e6-08db285c1ec0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: NEdw4AT/k2AEYFpvs5hWUA1/YseXLkRHC23/iahN1X3hdFxVyXlSKzxEP9gW/dsLGRwJwRSP1YPbiV7JDVroTBOgaKQG6qbclRUcUEIBSITBEYH86/pMm17P1r9FwgwBMnGHvd+n9eQ0QsRwhkrZ5sa7BDqphpWCaVqbirApjPov/JQtM0gGOyp0CaRUjiFztkBNaT5IERFprttZ+iYdGSSiDlt7Z5i3Afj+DmsGmeufmrWADiDVrUMNSxeZiLW8dfWJ42E9pzBzZPA+Y9JFUBk2aZkIqAOhmtfhgTUwBcHYnEhox/c6cj6wb9lc787G9x1I0l2YXBfvJkKaPDR3Gc+YrORnt9XWyBkquTikd5r3twfDX9wa2ceBoYKbriJN3Q0KYvwy3Eg2N6bZaaRp+OqgcOMD7KQoHlsa6JMS7Ad1JxnE6O0UCtzLKxtiSs6NReSAe0DlbrZ7IynMgGeMJIt0MMwUuiV85kW7R2Z/z8vHWV02Th73LbQ2u/Pb86F+COEJnYSQCGue89e+jCPk45K6cMuVR/dA9N5w+xcjo+wBKlzL1P1pdi3gQasCMqY4d/WwRCWDq4rtIF/8fCUSibwAYsXeQr9uyDbpxqwr0wpdJU/z/xi2AGECJDnD4V/bZF/crxAaDfgYnehqDVajuqMK0SEvMlb0fddlc6fpPgFPm+R/BuOWHdM9rOpnVLJ9+FjAS0ownm52mdKKS3XjSA== 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)(346002)(136003)(366004)(396003)(39850400004)(451199018)(52116002)(2616005)(478600001)(6486002)(83380400001)(6666004)(316002)(54906003)(8676002)(66476007)(66556008)(66946007)(186003)(26005)(6506007)(6512007)(110136005)(1076003)(4326008)(5660300002)(41300700001)(4744005)(8936002)(38350700002)(38100700002)(2906002)(36756003)(86362001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: amW+U2SyqghkRmvcE1MTAi7HQX5Ao4c05kkoAcZJOP/nq/jr5edwEFt/sIAyuWCkwoSe6yn63gb3VXVumCZ4pvD0EAFk//yrSJn1D5hNqyQLn+fYEo1hLW0asgTPVDWKw+Jbo6CXk5bcDRrhYcs1gymth7ZtaCkMWSLpZ8cVPkT0W/l/G5GgWbJ6DKB3wr9iSF7VW8vzOAldPnZyiTCc9/TsUCX1znMWtOvuu+aQ4sHPgA7LgCLcCQFMcmXOOPmmf74X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z/6halwGmu9vur5vKhTBaOBTexYCMJB4J2J5OCnc7txWuSUJ5FhKH79pLM10/29vgekSzVMY7PaJKiwrNRJe6SkBUJzLjWYTkUOH8Wj8puiUOupCgYedDkG+AUzP420Y9dTu4pHLLS2U6Df/paPsaOKPr2n0hc1cFoadqdQkZp+BYALO9jaGFyxgH/Wb7C0cedzfMfDdbyObc5VGmG5dM5rSeeoJCGwX9jUCbPLlRpbw3r+xxITk61 X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: b88627e4-a901-41de-49e6-08db285c1ec0 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Mar 2023 09:27:12.2639 (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: YY4SLmt5Nn1EF6M2J2KmGbdU2eL8QGPabrAGWupoO+ITX7pempAPu+bAN81NB/wD5Ht3mUELYv1rDCPka/87lg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SI2PR06MB4012 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?1760788903866833824?= X-GMAIL-MSGID: =?utf-8?q?1760788903866833824?= |
Series |
[v2,RESEND,01/10] kobject: introduce kobject_del_and_put()
|
|
Commit Message
李扬韬
March 19, 2023, 9:26 a.m. UTC
Use kobject_del_and_put() to simplify code.
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: "Rafael J. Wysocki" <rafael@kernel.org>
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); } }