From: Christoph Hellwig <hch@lst.de>
To: axboe@kernel.dk
Cc: linux-block@vger.kernel.org, linux-mm@kvack.org
Subject: untangle the block headers
Date: Wed, 15 Sep 2021 08:40:27 +0200 [thread overview]
Message-ID: <20210915064044.950534-1-hch@lst.de> (raw)
Hi Jens,
this series untangles the worst of the block header maze. It removes
various includes from blkdev.h and genhd.h, and also ensures the
writeback code doesn't pull in blkdev.h leading to huge rebuilds
whenever they change. Finally it moves various bits out of blkdev.h
which shouldn't be in the general block layer header.
It has surived various randomconfig builds from me and the buildbot,
but I suspect there are a few more conditionally missing headers
that will emerge later for more oscure configs, so it would be great
to get this out early.
Diffstat:
arch/mips/rb532/prom.c | 1
arch/mips/sibyte/common/cfe.c | 1
arch/mips/sibyte/swarm/setup.c | 1
arch/openrisc/mm/init.c | 1
arch/um/drivers/ubd_kern.c | 1
block/bdev.c | 1
block/bfq-cgroup.c | 2
block/bfq-iosched.c | 2
block/bio-integrity.c | 2
block/blk-core.c | 1
block/blk-crypto-fallback.c | 1
block/blk-crypto-internal.h | 2
block/blk-integrity.c | 2
block/blk-iolatency.c | 1
block/blk-merge.c | 25
block/blk-mq-sched.h | 1
block/blk-mq-tag.h | 2
block/blk-mq.c | 2
block/blk.h | 40 +
block/bounce.c | 1
block/elevator.c | 2
block/elevator.h | 21
block/genhd.c | 1
block/holder.c | 1
block/keyslot-manager.c | 1
block/kyber-iosched.c | 2
block/mq-deadline.c | 2
block/partitions/core.c | 1
block/t10-pi.c | 2
drivers/block/amiflop.c | 2
drivers/block/ataflop.c | 1
drivers/block/floppy.c | 1
drivers/block/rnbd/rnbd-proto.h | 2
drivers/block/swim.c | 1
drivers/block/xen-blkfront.c | 1
drivers/gpu/drm/i915/i915_utils.h | 1
drivers/md/dm-bio-record.h | 1
drivers/md/dm-crypt.c | 1
drivers/md/dm-ps-historical-service-time.c | 1
drivers/md/dm-rq.c | 1
drivers/md/dm-table.c | 1
drivers/md/dm-verity-target.c | 1
drivers/md/md.c | 2
drivers/mmc/core/sd.c | 1
drivers/mtd/mtdsuper.c | 1
drivers/nvdimm/core.c | 1
drivers/nvme/host/core.c | 1
drivers/nvme/host/pci.c | 1
drivers/nvme/host/rdma.c | 1
drivers/nvme/target/io-cmd-bdev.c | 1
drivers/nvme/target/rdma.c | 1
drivers/s390/block/dasd_genhd.c | 1
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c | 1
drivers/scsi/lpfc/lpfc.h | 1
drivers/scsi/scsi_lib.c | 1
drivers/scsi/sd.c | 1
drivers/scsi/sd_dif.c | 2
drivers/scsi/sg.c | 1
drivers/scsi/sr.c | 1
drivers/scsi/st.c | 1
drivers/scsi/virtio_scsi.c | 1
drivers/target/target_core_file.c | 1
drivers/target/target_core_iblock.c | 2
fs/btrfs/compression.c | 1
fs/btrfs/ctree.c | 1
fs/btrfs/inode.c | 1
fs/f2fs/compress.c | 1
fs/ntfs/file.c | 1
fs/ntfs3/file.c | 1
fs/orangefs/inode.c | 2
fs/orangefs/super.c | 1
fs/quota/quota.c | 1
fs/ramfs/inode.c | 1
include/linux/backing-dev.h | 19
include/linux/blk-integrity.h | 183 +++++++
include/linux/blk-mq.h | 465 ++++++++++++++++++
include/linux/blk_types.h | 2
include/linux/blkdev.h | 743 -----------------------------
include/linux/blktrace_api.h | 2
include/linux/genhd.h | 14
include/linux/part_stat.h | 1
include/linux/t10-pi.h | 2
include/linux/writeback.h | 14
include/scsi/scsi_device.h | 2
init/main.c | 1
kernel/acct.c | 1
kernel/exit.c | 1
kernel/fork.c | 1
kernel/sched/core.c | 2
kernel/sched/sched.h | 1
lib/random32.c | 1
mm/backing-dev.c | 19
mm/filemap.c | 1
mm/highmem.c | 1
mm/mempool.c | 1
mm/nommu.c | 1
mm/readahead.c | 1
mm/shmem.c | 1
mm/swapfile.c | 2
99 files changed, 830 insertions(+), 825 deletions(-)
next reply other threads:[~2021-09-15 6:41 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-15 6:40 Christoph Hellwig [this message]
2021-09-15 6:40 ` [PATCH 01/17] mm: don't include <linux/blk-cgroup.h> in <linux/writeback.h> Christoph Hellwig
2021-09-15 8:45 ` Johannes Thumshirn
2021-09-15 8:49 ` Christoph Hellwig
2021-09-15 8:51 ` Johannes Thumshirn
2021-09-15 6:40 ` [PATCH 02/17] mm: don't include <linux/blk-cgroup.h> in <linux/backing-dev.h> Christoph Hellwig
2021-09-15 9:11 ` Johannes Thumshirn
2021-09-15 6:40 ` [PATCH 03/17] mm: don't include <linux/blkdev.h> " Christoph Hellwig
2021-09-15 6:40 ` [PATCH 04/17] mm: remove spurious blkdev.h includes Christoph Hellwig
2021-09-15 8:51 ` Johannes Thumshirn
2021-09-15 6:40 ` [PATCH 05/17] arch: " Christoph Hellwig
2021-09-15 6:40 ` [PATCH 06/17] kernel: " Christoph Hellwig
2021-09-15 6:40 ` [PATCH 07/17] sched: move the <linux/blkdev.h> include out of kernel/sched/sched.h Christoph Hellwig
2021-09-15 6:40 ` [PATCH 08/17] block: remove the unused rq_end_sector macro Christoph Hellwig
2021-09-15 6:40 ` [PATCH 09/17] block: remove the unused blk_queue_state enum Christoph Hellwig
2021-09-15 6:40 ` [PATCH 10/17] block: remove the cmd_size field from struct request_queue Christoph Hellwig
2021-09-15 6:40 ` [PATCH 11/17] block: remove the struct blk_queue_ctx forward declaration Christoph Hellwig
2021-09-15 6:40 ` [PATCH 12/17] block: move elevator.h to block/ Christoph Hellwig
2021-09-15 6:40 ` [PATCH 13/17] block: drop unused includes in <linux/blkdev.h> Christoph Hellwig
2021-09-15 6:40 ` [PATCH 14/17] block: drop unused includes in <linux/genhd.h> Christoph Hellwig
2021-09-15 6:40 ` [PATCH 15/17] block: move a few merge helpers out of <linux/blkdev.h> Christoph Hellwig
2021-09-15 9:15 ` Johannes Thumshirn
2021-09-15 6:40 ` [PATCH 16/17] block: move integrity handling " Christoph Hellwig
2021-09-15 6:40 ` [PATCH 17/17] block: move struct request to blk-mq.h Christoph Hellwig
2021-09-15 9:19 ` Johannes Thumshirn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210915064044.950534-1-hch@lst.de \
--to=hch@lst.de \
--cc=axboe@kernel.dk \
--cc=linux-block@vger.kernel.org \
--cc=linux-mm@kvack.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox