]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
block: move bio_iov_iter_get_bdev_pages to block/fops.c
authorChristoph Hellwig <hch@lst.de>
Tue, 7 Oct 2025 09:06:28 +0000 (11:06 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 7 Oct 2025 14:05:44 +0000 (08:05 -0600)
commit506aa235f6e0baa00bf792df82a5e9f618b7a5d8
tree1c8f6e6b950e00cbc227e37b42469adfb0654bff
parentcb6d51a4115781fd9de6108932e866a332e38406
block: move bio_iov_iter_get_bdev_pages to block/fops.c

Keep bio_iov_iter_get_bdev_pages local with the callers, as blindly
looking at the bdev logical block size is often not the best idea
unless on a block device.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/fops.c
include/linux/blkdev.h