diff options
| author | Christoph Hellwig <hch@lst.de> | 2025-05-05 10:11:25 +0200 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2025-05-05 13:22:39 -0600 |
| commit | eeadd68e2a5f6bfe0bf1038ec49e3a8d99eb5fe8 (patch) | |
| tree | 4db0814241216dff26f4175195a6a5971cd1ef65 /block/blk-map.c | |
| parent | a9437f6a1d8d0b3787fe6ff03d9aab4d3fe9b940 (diff) | |
| download | linux-eeadd68e2a5f6bfe0bf1038ec49e3a8d99eb5fe8.tar.gz linux-eeadd68e2a5f6bfe0bf1038ec49e3a8d99eb5fe8.tar.bz2 linux-eeadd68e2a5f6bfe0bf1038ec49e3a8d99eb5fe8.zip | |
block: remove bounce buffering support
The block layer bounce buffering support is unused now, remove it.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: John Garry <john.g.garry@oracle.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Link: https://lore.kernel.org/r/20250505081138.3435992-7-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-map.c')
| -rw-r--r-- | block/blk-map.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/block/blk-map.c b/block/blk-map.c index d2f22744b3d1..cadbf11b50a3 100644 --- a/block/blk-map.c +++ b/block/blk-map.c @@ -556,8 +556,6 @@ int blk_rq_map_user_iov(struct request_queue *q, struct request *rq, if (map_data) copy = true; - else if (blk_queue_may_bounce(q)) - copy = true; else if (iov_iter_alignment(iter) & align) copy = true; else if (iov_iter_is_bvec(iter)) @@ -713,8 +711,7 @@ int blk_rq_map_kern(struct request_queue *q, struct request *rq, void *kbuf, if (!len || !kbuf) return -EINVAL; - if (!blk_rq_aligned(q, addr, len) || object_is_on_stack(kbuf) || - blk_queue_may_bounce(q)) + if (!blk_rq_aligned(q, addr, len) || object_is_on_stack(kbuf)) bio = bio_copy_kern(q, kbuf, len, gfp_mask, reading); else bio = bio_map_kern(q, kbuf, len, gfp_mask); |
