Message ID | 20230309-kobj_release-gendisk_integrity-v2-4-761a50d71900@weissschuh.net |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp5484wrd; Fri, 10 Mar 2023 14:42:38 -0800 (PST) X-Google-Smtp-Source: AK7set83wcAFlHF25vzXvJGhRsXAynpEZEhBAUO+WmQWWbAXnJQMIi/Ja7hw6ZzIrZ/wa+r9i4nq X-Received: by 2002:a05:6a20:3942:b0:cd:fe1b:df8 with SMTP id r2-20020a056a20394200b000cdfe1b0df8mr30318371pzg.56.1678488157737; Fri, 10 Mar 2023 14:42:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678488157; cv=none; d=google.com; s=arc-20160816; b=DVK7v3rxUbcECkOHptOtSagyPlF+xzJlGX0aL07/t89AbE6eh1gemADt5ho7g4PxxJ VO9FTo7l+wfvD3xnmYd44PAam7yo+WgOOkIDycdmkpvtJX2JvLfWz0S2GUWazAPyu1rv wKZ5A8kKZZ2rco2+sX21kAcjpQSI98IaVnXH++OLcZdwDVhViXXAY2dVLw4edZZ5tMFu h3ZHbgu9+tFPUAz+Suq/SNbHPHJ7S/eUtLF3isLWoPvRfcQ0Qst6W5ZBdAtILoh5RiTI UD/caN6yzM2vaT9qszatgk5nRhcR9iVm/tcyV+Wkms9A8dTxnzhGfztunaiYJ80lH1t4 4qyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:dkim-signature :from; bh=xzCPEHqBfQhKICZjrxAETePPQveFVsaC7E+bxIyAHdk=; b=e1O4yPbQtmSM9mDRQr86rxo3fJl37Vn53xSsGKqIIDkdpu20XlvBndj43+0DRLkfJF Sbd27I1udIJic8KxNcrFEt/kV9dfni6koef7QtBI0MJgOuexOvpqIZTc5/kw/OXk06n8 CfSwpwpYrkUbBF0mLH46pq26C5O9vTiSKwQIj9DJ0wyWUOom+PSo8FAFjnKPpEdCh2/J cigoe5+G9dRDdqv3CzE/oNMg+LYzlNE7++c+IxpXG8eKqHQQWrBcxVrBRCnMcUzTW6Qz 7YZsnoiI7eJ4bdI1Z+VpazqKOtQGLLPAtcso0bTze+EXjB8+uN6xkivh7rsRWVHSxTq1 B1EA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=sE22RVsH; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s137-20020a632c8f000000b005030859019fsi736075pgs.675.2023.03.10.14.42.21; Fri, 10 Mar 2023 14:42:37 -0800 (PST) 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=@weissschuh.net header.s=mail header.b=sE22RVsH; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231715AbjCJWkf (ORCPT <rfc822;carlos.wei.hk@gmail.com> + 99 others); Fri, 10 Mar 2023 17:40:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231616AbjCJWk1 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 10 Mar 2023 17:40:27 -0500 Received: from todd.t-8ch.de (todd.t-8ch.de [IPv6:2a01:4f8:c010:41de::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 749EB12DDEF; Fri, 10 Mar 2023 14:40:22 -0800 (PST) From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= <linux@weissschuh.net> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1678488020; bh=LhiQNQDzGsVSilvdHxI2IkQhBsPFCK1RowivwifIxYg=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=sE22RVsHgnpqRoENj8xKSVxDb2gLhErFnxi24EOtLc5snn2SPouPKXHI1+QZeTMwc Tmin05cTU2K/1qp6kH/cc/4EEeBFI/pwWSi/yw8oysroY7SEWHU7ebJzUXq0dLKY5E WBa77Ug9kJYI/0rNqoh+944i97WJC+wQ7jCDMRfE= Date: Fri, 10 Mar 2023 22:40:05 +0000 Subject: [PATCH v2 4/4] blk-integrity: drop integrity_kobj from gendisk MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20230309-kobj_release-gendisk_integrity-v2-4-761a50d71900@weissschuh.net> References: <20230309-kobj_release-gendisk_integrity-v2-0-761a50d71900@weissschuh.net> In-Reply-To: <20230309-kobj_release-gendisk_integrity-v2-0-761a50d71900@weissschuh.net> To: Jens Axboe <axboe@kernel.dk> Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, "Martin K. Petersen" <martin.petersen@oracle.com>, =?utf-8?q?Thomas_Wei?= =?utf-8?q?=C3=9Fschuh?= <linux@weissschuh.net> X-Mailer: b4 0.12.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1678488015; l=688; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=LhiQNQDzGsVSilvdHxI2IkQhBsPFCK1RowivwifIxYg=; b=ws/Wvfp/YWGMguSZpa/0eVK1Y4chRivP0mRHGaoxtKT2wcJAWRAh4rzknNcDs85r+jURGecyF N6tZ3b6U93xD2Yt5BoOJT7vvlBNRO3UdsEN1iErpgkLDTPMMzK7+VJ2 X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED 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?1760022398624840172?= X-GMAIL-MSGID: =?utf-8?q?1760022398624840172?= |
Series |
blk-integrity: drop integrity_kobj from gendisk
|
|
Commit Message
Thomas Weißschuh
March 10, 2023, 10:40 p.m. UTC
The previous patches made the integrity_kobj member in struct gendisk
superfluous, remove it.
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
---
include/linux/blkdev.h | 3 ---
1 file changed, 3 deletions(-)
Comments
On Fri, Mar 10, 2023 at 10:40:05PM +0000, Thomas Weißschuh wrote: > The previous patches made the integrity_kobj member in struct gendisk > superfluous, remove it. Maybe fold this into the patch that removes the last use?
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index d1aee08f8c18..b5bc85c3166f 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -163,9 +163,6 @@ struct gendisk { struct timer_rand_state *random; atomic_t sync_io; /* RAID */ struct disk_events *ev; -#ifdef CONFIG_BLK_DEV_INTEGRITY - struct kobject integrity_kobj; -#endif /* CONFIG_BLK_DEV_INTEGRITY */ #ifdef CONFIG_BLK_DEV_ZONED /*