Skip to content

Commit

Permalink
Merge branch 'for-6.11/block' into for-next
Browse files Browse the repository at this point in the history
* for-6.11/block:
  block: take offset into account in blk_bvec_map_sg again
  • Loading branch information
axboe committed Jul 9, 2024
2 parents dcee179 + 61353a6 commit 83215e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions block/blk-merge.c
Original file line number Diff line number Diff line change
Expand Up @@ -491,8 +491,8 @@ static unsigned blk_bvec_map_sg(struct request_queue *q,

while (nbytes > 0) {
unsigned offset = bvec->bv_offset + total;
unsigned len = get_max_segment_size(&q->limits, bvec_phys(bvec),
nbytes);
unsigned len = get_max_segment_size(&q->limits,
bvec_phys(bvec) + total, nbytes);
struct page *page = bvec->bv_page;

/*
Expand Down

0 comments on commit 83215e8

Please sign in to comment.