]> www.infradead.org Git - users/jedix/linux-maple.git/commit
block: move dma_pad_mask into queue_limits
authorChristoph Hellwig <hch@lst.de>
Wed, 26 Jun 2024 14:26:29 +0000 (16:26 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 26 Jun 2024 15:37:35 +0000 (09:37 -0600)
commite94b45d08b5d1c230c0f59c3eed758d28658851e
tree0b340806fc8d7ad718ab1e9abc99aa0a977035ea
parentabfc9d810926dfbf5645c7755c8d5ab96273f27d
block: move dma_pad_mask into queue_limits

dma_pad_mask is a queue_limits by all ways of looking at it, so move it
there and set it through the atomic queue limits APIs.

Add a little helper that takes the alignment and pad into account to
simplify the code that is touched a bit.

Note that there never was any need for the > check in
blk_queue_update_dma_pad, this probably was just copy and paste from
dma_update_dma_alignment.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Link: https://lore.kernel.org/r/20240626142637.300624-9-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bio-integrity.c
block/blk-map.c
block/blk-settings.c
drivers/ata/libata-scsi.c
drivers/ata/pata_macio.c
drivers/scsi/scsi_lib.c
drivers/ufs/core/ufshcd.c
include/linux/blkdev.h