Message ID | 20230320184730.56475-4-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 j10csp1391423wrt; Mon, 20 Mar 2023 12:19:09 -0700 (PDT) X-Google-Smtp-Source: AK7set/L7jopwj4Fj92hN3iAa93t4ZNVNJkd2QLiRIPhFojfxe3h8L1K5338tQ3pdg+2TLBE+mp6 X-Received: by 2002:a05:6a20:8b98:b0:da:501:55e with SMTP id m24-20020a056a208b9800b000da0501055emr3119841pzh.40.1679339949151; Mon, 20 Mar 2023 12:19:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1679339949; cv=pass; d=google.com; s=arc-20160816; b=q1kmdDJ6N85+27YUuCUGmaSci5XeKx2zSHvQzw8V6ny13g04iSItTzRDZZ/pkmVw0N W7AjaWTwYzJyL4abtVXC8lD7/glITj4X7zRewzbht2D4ZQc8l98Z+U1hxT54F6aSmSz0 g6PebW4zILSlJITq8o38tuTHHf27vGrLj1Bi5zva1HxQtEcmXS+KrFllw2t/pthfZPm4 096dsd2eD+IXAmv2nwq9YSMfFEg3m2lIkBW0W169l1pAYZ1dLNjoxhRfVIUzyRSYZBfe yCdWlj8D6Mym/Uf5zb6brEwBGDlmgQtZI6LRu2yMoOpz7gTnIrrqycNooJmaYaqN0f+Y AGXw== 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=zeQHK9btMEEetoQ258/+zZi9o7P0QMgrRsf6CanIx3o=; b=k9Kj+Q8yzHDnAlp9Y+vmU2OrCOzCqif+6KhLq/LBwUyTZOXbmW48tJi4pnYV6BFIx7 0Ch9xESzx2BM+v91atGB5y3c+9KMw6LuQLFK9sQEBD9BVlV9QuM61He3lNg7yi9/G7NE F23z6ivkD9M6ay1jj8omdv9L2EvVfgXV0imTOaZ4Svv8pB6ghWuoWBQMt6UWA9Xe8LUZ 6v6dOeGn50dJ9UqTgwF/Z0GWihfUbUNA1DYFE86w6x/nHtj8Ja3sR+rNb575CdhrkQ6k spSSbUqUd5OwOrPYlfKYuc4ZRSFWIAv7BHSfhrNjz78YspaGpGqn6ZUpQQa4ZqohQgpT 8nMg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=Wnb6UMn6; 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 bm18-20020a656e92000000b00508b8b16db3si11166815pgb.656.2023.03.20.12.18.53; Mon, 20 Mar 2023 12:19:09 -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=Wnb6UMn6; 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 S229788AbjCTS4q (ORCPT <rfc822;pusanteemu@gmail.com> + 99 others); Mon, 20 Mar 2023 14:56:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40804 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230194AbjCTS4H (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 20 Mar 2023 14:56:07 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2091.outbound.protection.outlook.com [40.107.255.91]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A7F6348E26 for <linux-kernel@vger.kernel.org>; Mon, 20 Mar 2023 11:48:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=c6Z+AS580tduVU+s7Pz2zdIxCh0yLU9IKceeVEgQmj+OOqLGjQlLClQcYBYOzeTFDKVWbm9N8hWUbVruglJIMa+yDFgQkrn7IP2fb4PEgoa1tyjozsQSOXwS/lYRoKJZoLbQ3U6bN9toNtvH1EvDjh6nKcxuxCGvZoBhZUl2weDx677rYFbd81Kpom6c2VUOnhOzugJtwjKjV1fbUBYfbAl8iWdE4HxudnLuF+V5KI1sMxXuDaaRIxIGx8Oo23RmwnJ+oE95Uxm8fMJbnRm6x0m7l/7fjgU0PqKXPxRlCc4VFQ0Tzs2lPZjia3n/KTTrnp9OLF3S7Ree5eD08U8PNA== 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=zeQHK9btMEEetoQ258/+zZi9o7P0QMgrRsf6CanIx3o=; b=EPACSjCOFOL5xBeIgFgngTiAwYmMLJm9tygg+0I1dOB1HfwcfasLPh/dAl6IZjXQOF6xJ728I+Hh1GHp+ArKRcte8MMsnQvMzWHu8X2BnNvZAnbTnklzoPB9nAD/MOpMT2pw6u7Bl2TEU+ydw8+U8uLUz5xlv+G0YR8Eh+xRKJ3IiPLsTCpTyfjgdO6gJOPHAPJ972e29QJbRz6rQmGnhqm+31xUwjKZDn2MPgAQ6dk7dyzvjkzj9Rdd/G9cCiYTlB+KpZKHRwUj0NhuisuYpc0Od6HlITNDF0JK8SvSrnnf2UO7n4io3103SZy+fNyPxKHBjTxnYFPMe/UqkGvxzQ== 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=zeQHK9btMEEetoQ258/+zZi9o7P0QMgrRsf6CanIx3o=; b=Wnb6UMn6TCexnHhME+uI/lYxvyVmA/5fwacEpKBYDxSXO9J8qW068JcraRmfVVEbGS1MRIm7J/ZYQ1A4EvJZ4UwBYLvunbeoSxUxt4sdn9AUM3DJK57Hx7DcT6235DavZC+YNZBBMk03CHSDt/gHvARA0U3j5UR4+oFO/Zi7KEKdua7l1/nGx96FzP+DBeelptoJTnSryCE9PZSxlEY+OqbYGceto0ITNdnrFnW7irPjL71sOV4+stdH8+icuo3P0nRuF2roHGUxFZtKi9EGGg/eVjeI6UoEL5tpoNveIrlQL9PUmzwEKCoos156uMdLBZvX41fBGyXlCahNAsXDdw== 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: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; Mon, 20 Mar 2023 18:47:53 +0000 From: Yangtao Li <frank.li@vivo.com> To: Richard Weinberger <richard@nod.at> Cc: Yangtao Li <frank.li@vivo.com>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, "Rafael J. Wysocki" <rafael@kernel.org>, Damien Le Moal <damien.lemoal@opensource.wdc.com>, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [RESEND,PATCH v2 05/10] ubifs: convert to kobject_del_and_put() Date: Tue, 21 Mar 2023 02:47:24 +0800 Message-Id: <20230320184730.56475-4-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: f5395184-4d3a-4e82-7bc9-08db29739ce1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: wEhAaMGAaAif0F97SU3O1y+2NzLM9BCf4iim6AjQ5jIIAkaxLJqfhfXywgDLzl4tWVCTP7iL5Cnq1jlNtyCVFxW2ONNqHh/lmzJ9wRxw+D/iqw++yvk3E3QQ1tY7oorx4E6h9QnORwoGPZbpSmxabvPAO1pyVx203hHR439tNmZw/cjLfcrbsZLBVeFy0eQmpXl/eUy8Ixtc2zDs8b2Fic6u3+Lpbqk2vTd6ua9OonNrVN4w2zzoJ61ncmOloei0LhF7lTJr4o73khbhbNw5A/PwJgo1lJXYYD4sQDHva2sAan1agj0Epa/XIOqhyEZusqrYGno6joCQhW128kh92kV5++ePG5gVNvUuxXcMB2vmD9EX23AgIzPyr5RUXPRc1VYh61GYzgj2pmwaYHFwTXD/07YFhsP+q+tqrctqJDFXQ48jRX5o880MYfJRWCZbkgmqDU5xBiek4nYTacYsR/5bN1F1EUzf9FxERZx1cJYXawgOI+vtjAdC91l+1Zi6PyC2shQvt6dRqvPoSfZjIj8hZyukmXRsjRdEEvKeVuh4D3YEgBelw1vKlk2JX5ifK+EkfM66nQkp1Ea+IUk3EFj7Z7XTsh/lFvpirzPbWwEJ0A9MJ7anj7QjDEukj0+78PTMNLfcZKptuErFWhZTLvU0LhQShOs7CQ6JB6i/Z2NlNj14OPr9ZTcaNlld04kFsrooCCNl3Dqlps9POVCfuw== 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)(6916009)(66946007)(478600001)(66556008)(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: AC2xu3N/VOXcy8p+4XNxyF6Lqo+ZPk1DfwZB6OAHCcBYJWQ781ZB4EYnHGfkyUt2y62bNSC5vMR4uHkVUtzmymS81vHlufYPp3sUKkQvRQBudgWAemnFmrBIEVNzuG5tMtD3LwaqzCk5S/0xuWiIGLyQDD7DCqFACI6jnnCdF+23JjvbI8yqP1OUtc+MGpO2IRYXS+kPSDGXIcY70p3tOFcP5QreRL5Rx1vDHSceFVh827FjcS8128nuxo5I6J8FWlmrqiqIIIiHxJfxnHICniIw5XHfZAz38SwDmRYRQ9whQJ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/ChraNXB/A2Fgo949rvZF+o6qNzIXEwxohmY8rNOS5UvhYAR124W4y/Yo5Xn95wRj84E3zHBxkhR6yhtelFocvRKDTqY2Kn2A8NCT8kIeISb8fEVSU9RbPpKmiriaXp3KUnvZj7xB5cHQRtX16lxyr4H/l87fohGDZyjgXQRMBXiFCxHZ2QiQTyfNcaShrTEVUgg4UDH3DS9YVs/hIYunv80nYURkwC/XZ X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: f5395184-4d3a-4e82-7bc9-08db29739ce1 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:53.4931 (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: ZFErF+C6gPc+D8IqTKY+FjP8PxUra1jpkxHJLXXpiMvl9AUeoIlJ6nXqzldvsyg7P/T/Nva/VVe9d6G4Qkw8nw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SI2PR06MB4121 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?1760915566847479596?= X-GMAIL-MSGID: =?utf-8?q?1760915566847479596?= |
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/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);