Message ID | 20230319084134.11804-5-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 j10csp639372wrt; Sun, 19 Mar 2023 01:43:14 -0700 (PDT) X-Google-Smtp-Source: AK7set/d53AgfDycRQ4z3/1j8aeMSC8v2b4p8mMbnrX8DiOBfCu7ZkIk4dq3NBi8KzUH0x7cgWvC X-Received: by 2002:a17:90b:1c8d:b0:233:f98a:8513 with SMTP id oo13-20020a17090b1c8d00b00233f98a8513mr14309844pjb.8.1679215393942; Sun, 19 Mar 2023 01:43:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1679215393; cv=pass; d=google.com; s=arc-20160816; b=YRz95VDTjhYk1+3NFZsb8rx5qRn9fdGKtKpJ87K4HuHGipdOsOTHTKDP9ISL2yELM/ 6UNzTcC45gGcIJyzzXoEWACZsZUqliXLQb8s3fK2TT2aNydhQr7V11sYAgsvIqjyDdHV IYR6GXn9vJKEbHsSc0U5xNaO3hUXQg66LsYicJqxaXKUVTN8QurXcUGQ7+IZ9Rwvvb6D L6TqF59+m3u4c3Vj62pKhlgOK6SFm2CHf9TNh4xgl7+DflttVKu5NAIqPERPUe0LcH93 8i5y/MLifL6MzSsXSLMsp5SfMgk/FhpjD3xc4TIKXlH5Imi7KVTel/9xh+ROLUCpf+jf K81A== 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=YfzLJyGg2pPv0YkDWXwHhHcFZsGUeeX9EwBVvu3ePyA=; b=fUlpo/lSZ7s80goTpZIjlo9JYlVHKczu8YQeJh9zBsD/Z4yKHLtShg5IU1bWCJNXB7 SSeNCIJI0wrJmsIiMsWeJqZIyooJlxye743f1PeO69RIGZxN4GVMuc9PH4L63xbGPlKw /zbSOrJAFyO9xPz7+1D0k1Y3iLug1TOtGnHygtQTahscYLmbjxNGFft+fj7Vzl2MurTA GSGUGnnm3PA7bJzkZCzROonliovpAJpfJ5/3tn7P5gTDund9tM7UwDRv67pH7HwZi0Zm pj2Tso5LP6LVZ5/qJL4dnKcB0/UKEE35q1IdV2o6APmjpj9vH8VP7XZj1UGNKUUb7Ah3 DwAw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=i+FBK8dZ; 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 e14-20020a17090a4a0e00b0021918bc9a47si6730064pjh.174.2023.03.19.01.42.59; Sun, 19 Mar 2023 01:43:13 -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=i+FBK8dZ; 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 S229468AbjCSImM (ORCPT <rfc822;pusanteemu@gmail.com> + 99 others); Sun, 19 Mar 2023 04:42:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230189AbjCSImF (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 19 Mar 2023 04:42:05 -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 1142016AC7 for <linux-kernel@vger.kernel.org>; Sun, 19 Mar 2023 01:42:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ns3wRcz8cEI5wnaDzTAX1C3dzVCEc4AEXOBKKceYO+f5btY+U9CRrt9F1lKQZvni0zoFGW/8aNUicS/z1wRO1aZF5fhaasMnHCOOsmeR+YNiS7lKPLOu26Nu4LlMvU7w4MpCssrauRzrXOYI/mFUsiLBESr1Z9AzRHW16A25+PZ68jvbJpZp0M3VxdcZGDxu8bte7RT7qaVZPJA5oaCM+2+uMpB67/YgagIXSjpmd7RibUbT3JYXDuv+sUwh7J+F3xScoKXthChYMqYyzscf8OWmP3GUDi5eSBRLOkyjKkkgJ8Or8xJlsFkGpS2yO76Krn+40obBoahpMuCqB87NWA== 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=YfzLJyGg2pPv0YkDWXwHhHcFZsGUeeX9EwBVvu3ePyA=; b=bkXTIlkxDyxsCP29MK44GLleHGdRvd1y/qKEOp3yE8hYQQDGID1apcfMC6h3EuUTVuPBfxSpcf7hixr0zPTkS5RMfTGUW/uvUSjPmskU2egwxCVY9HhRG0kIych89WcYFtBXgolm7dl1+BYslO01EZyCmTGKs5pw9elv2qk/XCOaoFiV6GkrE2vX8TLA6Q8LAmpAhZT4e7mXnLYEf7rK6puZ7W/3eA9ERD3wOnUfbbX7c1k9/S2HRCuHQVcPfqYKcKSWoNABiIkt4pDwLkNA6NhMil775Df0YLj+VRQ3oWJdJMJ6eqVP0GkpxNSzYGRjRWvDrzxyAV4pVyo35JKdKQ== 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=YfzLJyGg2pPv0YkDWXwHhHcFZsGUeeX9EwBVvu3ePyA=; b=i+FBK8dZ6ax7t14r9fEz9+epcR42PDI1rYM3WR/qBM+EVwedEzMeD+2JmYVf84J3KakRVGuFr9AP1pD9PtUcXusge3Ay/HUHCOwetiIhiOg7Ja80DV9+bSKByAi9URdphmKaG3FAGHFFkWubfBYPJjw6D1/m/GrN7Pbayb4zibkgHwnxTNqMRT6nGtZ0V3kHdbK1YQxaR9FR5HU7H9KfVMqvdn/fSk2+fGq0beeFyQ/yzIh4UgTjV+8S09Oa+ZZEBqFjN1ncnoE+m3lvUzFpWlsgEGa+8TTuFJ5hyyrOmwwFj4YIj4Fwb12Jn4+hsGgU8DwF1pzsLR8aTfkwj5yVBg== 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:59 +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:59 +0000 From: Yangtao Li <frank.li@vivo.com> To: Richard Weinberger <richard@nod.at> Cc: Yangtao Li <frank.li@vivo.com>, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 05/10] ubifs: convert to kobject_del_and_put() Date: Sun, 19 Mar 2023 16:41:28 +0800 Message-Id: <20230319084134.11804-5-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: 40eb91a2-5180-4e37-52b9-08db2855cdbe X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Fa5vZQtT9fsUkB/5Ka2knB6z9O5EVHDIoSjlUxIcYMWU2Q+01ZYi5nKkr7HFMt97R7SLy+aaXP06HipEsDA+FnmJGtIcgNFcZLQ8vn2kC2YtSrC8OkYtTghz+kbb3AHdyQQj3RIY982jbEM3MfqFgYePZu+qBWnJieLtHp0bevrlv1hHrNaE7PWo1nZEjLBm2SsEsKipkHh7s7M/FElxC/0AXlE/GqjNqY23evk18DKtRmKaA2sFI75f/JarSXK9TOwsNVh9qg5l3K6hfMjTYf5tuR+Pp1l3Udjbu6pCml6jD2M1KX0v3NLPP3x9fFVbqJTNaGnVxUXH96NzX07O9slkX4lVh9sZ+RzSr9DQO+e7pC5dSP9Nu3vbG6jbQfmscGBbCeBz9pgoQN5Tr62uFrWJR+AltCnTLwPGJGQbNnVs+5SisgF9Ivke4baEN3wEDTR4cFeYxZtGSvJ0dbfvXKgcyvD20O15o20ZqmGIcDIJJX0nwQGT4Dqv7uz59K5/WBMkUX5KOU8hUUeujUfv9HwdnSv0ofT92GaBRiI/SfWZlOtU2JugkOOx54G+F1cxqWzFa+dW2Gwkwxc/DuKU5WR2lbIJirK2OpXDxmIUu2ziMp7T7nxQCPUsicePDrmZZ5aUEgFMoFhVtHjw6ym7WYURS9cQyWC2goJg+eQlAIJINsoyy5yzW8Buew/hFaxr2fwRm1hluYI8vlh+9Y4Pmg== 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)(6916009)(4326008)(66476007)(66946007)(66556008)(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: LK2O1aLvIlDcgoGQDOTKmz5T0dHo3CioSF//Euoaql2E7dTUIPw5tWHXq77yjV+73mQrTls68OWZ8PqSDr0pNu1DOjyMjvSFvoJv8nVGFm2jzgRkqm+sHkmP9RZ2e1JKJtbMfTaEl4duxI+Pd4HGo71wDTT2Dl/9bxy7f8B5zPMcK461GYG2ti7PkZ5HzEkFB6BNGTk5tmRayJa81ZaFlXlsmjGJakk5wy1H3+WaIT8AskAM6CMtQcZhijOf96nN3PnOUW3kP+mT7s2ZeBsGXO5BqPumWc0rAEaH24d7bW+UzKBjgOLk6R3aYt2C2kIYbU0iembkBVMIv+pAr+VyKGwpb8Uu4BhD43J9WeIar9HBEJZ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8MxhptpHG1wgJmRJ1BNGiUwWlHEssWMOPnYIe2FQbBNuZjF1hNQTKFBNwzbEcG6J0dzQm/rfinhkMKW9dpDPcySFq27/ktjwuhnKpv1rmhigtKjV6fUYkRUisnycMp/jy5rn+VJatax0 X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 40eb91a2-5180-4e37-52b9-08db2855cdbe 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:59.4065 (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: J3zC/wjrsicP5XZkozj4984nDvsbEAXGJ4T04JUHapJA7widCdJGfZkTfIt4x1v7WWuNFycArupKMKPjiDYQCQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEYPR06MB5350 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=ham 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?1760784960846528057?= X-GMAIL-MSGID: =?utf-8?q?1760784960846528057?= |
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/ubifs/sysfs.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/fs/ubifs/sysfs.c b/fs/ubifs/sysfs.c index 1c958148bb87..9571718e61a9 100644 --- a/fs/ubifs/sysfs.c +++ b/fs/ubifs/sysfs.c @@ -130,8 +130,7 @@ int ubifs_sysfs_register(struct ubifs_info *c) void ubifs_sysfs_unregister(struct ubifs_info *c) { - kobject_del(&c->kobj); - kobject_put(&c->kobj); + kobject_del_and_put(&c->kobj); wait_for_completion(&c->kobj_unregister); kfree(c->stats);