Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp2819688rdh; Sun, 26 Nov 2023 22:22:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IFxIPMKJEfqk7tjRulghXO2TJ2/FFhPVtlZ0/WTh4G7I2qleymYfebahJVhBPMbAKo1nq79 X-Received: by 2002:a05:6a20:1587:b0:189:c987:76c5 with SMTP id h7-20020a056a20158700b00189c98776c5mr14880992pzj.43.1701066146130; Sun, 26 Nov 2023 22:22:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701066146; cv=none; d=google.com; s=arc-20160816; b=RZYy+vYuJtFWatO+XVTIpP2zIJDVjeJMN6I0uM6ExFIGcmjOHuxZWxNOsh9psQkw4I kc9B8S5QuzUdpBXGM5fdOquqtg39Mzpo5rdnKDFWNdHXuH+uYxUs+G8ojrclhpsTWxbT K3k8QbF0dNyiAuy8a2m43GDzDQ2jgnxTjt9lXFiLSwegy05RtknYIsTtck3DeHkj3pHg 8FnYTzBzVM7Ywwp/fziAM378MzPy/yxamBUyyzPO94HBwmxiLFbWp37punt+6ZoO3ORc s9HyzprCI64J1iGdMOh5n1ETz+y5/ptahnhcBbABgxZgceJ5dmznq9j58hLLmaJaEuqe on6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=p0IVddPewYWp+YSArEdd6STVfQI7yEIL12a0A/FIJHw=; fh=NWhZGYtc2+f9PHv/QRNNXUJMQaHV/FSqSljSUR3ePxw=; b=sg8nn66u7mS6dv3QPcjFISaVqrEm2mI1q3CtWBmxy2dEeXq3hlwO61c1mmP8n24A7K uZ/tVjeICKfk57PClbj2k4RTQTX0IK7L7VF91u6hQje7GVhK8jXtZUt2Iq28+ggmAybQ tiw9xLcNkV18xy44DqbKrRAD/PiOvL8KbSqbL4UplMMMu8EhH9be9U1Ils8ozCeu2Mf9 kGZ0MHht61s2WaQGAFznt86opoCAbozcA+dfOndFpElcOVgU9VttvrBRNkakMITlucEK 0eqHDIt3UE0Zaxw7Hn8Mp/gH0H203zbYJBqqrkWEa3j2Zq0EbFniQ4HcKDSKKT5xS5cE 1GoA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id n12-20020a1709026a8c00b001c9c89fd36dsi8711600plk.203.2023.11.26.22.22.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Nov 2023 22:22:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id C25898087FEC; Sun, 26 Nov 2023 22:22:19 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229973AbjK0GV5 (ORCPT + 99 others); Mon, 27 Nov 2023 01:21:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229509AbjK0GVz (ORCPT ); Mon, 27 Nov 2023 01:21:55 -0500 Received: from dggsgout11.his.huawei.com (unknown [45.249.212.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 557B1E4; Sun, 26 Nov 2023 22:21:58 -0800 (PST) Received: from mail.maildlp.com (unknown [172.19.163.216]) by dggsgout11.his.huawei.com (SkyGuard) with ESMTP id 4SdwTp0cTZz4f3m7D; Mon, 27 Nov 2023 14:21:50 +0800 (CST) Received: from mail02.huawei.com (unknown [10.116.40.112]) by mail.maildlp.com (Postfix) with ESMTP id 71ECC1A092C; Mon, 27 Nov 2023 14:21:54 +0800 (CST) Received: from huaweicloud.com (unknown [10.175.104.67]) by APP1 (Coremail) with SMTP id cCh0CgDX2hB+NWRlrcU8CA--.57866S4; Mon, 27 Nov 2023 14:21:53 +0800 (CST) From: Yu Kuai To: hch@infradead.org, ming.lei@redhat.com, axboe@kernel.dk, roger.pau@citrix.com, colyli@suse.de, kent.overstreet@gmail.com, joern@lazybastard.org, miquel.raynal@bootlin.com, richard@nod.at, vigneshr@ti.com, sth@linux.ibm.com, hoeppner@linux.ibm.com, hca@linux.ibm.com, gor@linux.ibm.com, agordeev@linux.ibm.com, jejb@linux.ibm.com, martin.petersen@oracle.com, clm@fb.com, josef@toxicpanda.com, dsterba@suse.com, viro@zeniv.linux.org.uk, brauner@kernel.org, nico@fluxnic.net, xiang@kernel.org, chao@kernel.org, tytso@mit.edu, adilger.kernel@dilger.ca, agruenba@redhat.com, jack@suse.com, konishi.ryusuke@gmail.com, dchinner@redhat.com, linux@weissschuh.net, min15.li@samsung.com, yukuai3@huawei.com, dlemoal@kernel.org, willy@infradead.org, akpm@linux-foundation.org, hare@suse.de, p.raghav@samsung.com Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, xen-devel@lists.xenproject.org, linux-bcache@vger.kernel.org, linux-mtd@lists.infradead.org, linux-s390@vger.kernel.org, linux-scsi@vger.kernel.org, linux-bcachefs@vger.kernel.org, linux-btrfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-erofs@lists.ozlabs.org, linux-ext4@vger.kernel.org, gfs2@lists.linux.dev, linux-nilfs@vger.kernel.org, yukuai1@huaweicloud.com, yi.zhang@huawei.com, yangerkun@huawei.com Subject: [PATCH block/for-next v2 00/16] block: remove field 'bd_inode' from block_device Date: Mon, 27 Nov 2023 14:21:00 +0800 Message-Id: <20231127062116.2355129-1-yukuai1@huaweicloud.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: cCh0CgDX2hB+NWRlrcU8CA--.57866S4 X-Coremail-Antispam: 1UD129KBjvJXoW7Ar4fKw15Jr18CF1kZr1rtFb_yoW8urWfpr 9xKFWrJ3yjkryrua1Iqw45X345Ja1kKayxuF97Aw4ruFW8G34furWktrsxGrW0qrZrJrWj gF13t34DJF4xXaDanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUUvI14x267AKxVWrJVCq3wAFc2x0x2IEx4CE42xK8VAvwI8IcIk0 rVWrJVCq3wAFIxvE14AKwVWUJVWUGwA2ocxC64kIII0Yj41l84x0c7CEw4AK67xGY2AK02 1l84ACjcxK6xIIjxv20xvE14v26w1j6s0DM28EF7xvwVC0I7IYx2IY6xkF7I0E14v26r4U JVWxJr1l84ACjcxK6I8E87Iv67AKxVW0oVCq3wA2z4x0Y4vEx4A2jsIEc7CjxVAFwI0_Gc CE3s1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqx4xG64xvF2IEw4CE5I8CrVC2j2WlYx0E 2Ix0cI8IcVAFwI0_Jr0_Jr4lYx0Ex4A2jsIE14v26r1j6r4UMcvjeVCFs4IE7xkEbVWUJV W8JwACjcxG0xvY0x0EwIxGrwACjI8F5VA0II8E6IAqYI8I648v4I1lFIxGxcIEc7CjxVA2 Y2ka0xkIwI1l42xK82IYc2Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1lx2IqxVAqx4 xG67AKxVWUJVWUGwC20s026x8GjcxK67AKxVWUGVWUWwC2zVAF1VAY17CE14v26rWY6r4U JwCIc40Y0x0EwIxGrwCI42IY6xIIjxv20xvE14v26r1j6r1xMIIF0xvE2Ix0cI8IcVCY1x 0267AKxVWxJVW8Jr1lIxAIcVCF04k26cxKx2IYs7xG6rW3Jr0E3s1lIxAIcVC2z280aVAF wI0_Jr0_Gr1lIxAIcVC2z280aVCY1x0267AKxVW8Jr0_Cr1UYxBIdaVFxhVjvjDU0xZFpf 9x0JUd8n5UUUUU= X-CM-SenderInfo: 51xn3trlr6x35dzhxuhorxvhhfrp/ X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Sun, 26 Nov 2023 22:22:20 -0800 (PST) From: Yu Kuai Changes in v2: - split different portions into different patches, as greg k-h suggested. - use container_of() instead of "bdev + 1" to get the address of bd_inode in the new helper, as grep k-h suggested. Yu Kuai (16): block: add a new helper to get inode from block_device xen/blkback: use new helper to get inode from block_device bcache: use new helper to get inode from block_device mtd: block2mtd: use new helper to get inode from block_device s390/dasd: use new helper to get inode from block_device scsicam: use new helper to get inode from block_device bcachefs: use new helper to get inode from block_device btrfs: use new helper to get inode from block_device cramfs: use new helper to get inode from block_device erofs: use new helper to get inode from block_device ext4: use new helper to get inode from block_device gfs2: use new helper to get inode from block_device jbd2: use new helper to get inode from block_device nilfs2: use new helper to get inode from block_device buffer: use new helper to get inode from block_device block: use new helper to get inode from block_device block/bdev.c | 44 +++++++++++++++--------------- block/blk-zoned.c | 4 +-- block/fops.c | 4 +-- block/genhd.c | 8 +++--- block/ioctl.c | 8 +++--- block/partitions/core.c | 9 +++--- drivers/block/xen-blkback/xenbus.c | 2 +- drivers/md/bcache/super.c | 2 +- drivers/mtd/devices/block2mtd.c | 12 ++++---- drivers/s390/block/dasd_ioctl.c | 2 +- drivers/scsi/scsicam.c | 2 +- fs/bcachefs/util.h | 2 +- fs/btrfs/disk-io.c | 6 ++-- fs/btrfs/volumes.c | 4 +-- fs/btrfs/zoned.c | 2 +- fs/buffer.c | 8 +++--- fs/cramfs/inode.c | 2 +- fs/erofs/data.c | 2 +- fs/ext4/dir.c | 2 +- fs/ext4/ext4_jbd2.c | 2 +- fs/ext4/super.c | 8 +++--- fs/gfs2/glock.c | 2 +- fs/gfs2/ops_fstype.c | 2 +- fs/jbd2/journal.c | 3 +- fs/jbd2/recovery.c | 2 +- fs/nilfs2/segment.c | 2 +- include/linux/blk_types.h | 15 ++++++++-- include/linux/blkdev.h | 4 +-- include/linux/buffer_head.h | 4 +-- 29 files changed, 91 insertions(+), 78 deletions(-) -- 2.39.2