mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-09-18 23:19:34 +02:00
block: rename bi_bvec_done
struct bvec_iter::bi_bvec_done is used an offset in the current bvec, let's rename it accordingly for better clarity. I also plan to use it for non-bvec based iteration in the future like dma-buf, so drop the "bvec" part. Suggested-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Link: https://patch.msgid.link/4e4c21858705a200bd8848ffe4080522e3eb5c1c.1786018753.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
committed by
Jens Axboe
parent
a600051da1
commit
b539aeacf8
+2
-2
@@ -1470,7 +1470,7 @@ static int io_sg_from_iter(struct sk_buff *skb,
|
||||
return zerocopy_fill_skb_from_iter(skb, from, length);
|
||||
|
||||
bi.bi_size = min(from->count, length);
|
||||
bi.bi_bvec_done = from->iov_offset;
|
||||
bi.bi_offset = from->iov_offset;
|
||||
bi.bi_idx = 0;
|
||||
|
||||
while (bi.bi_size && frag < MAX_SKB_FRAGS) {
|
||||
@@ -1489,7 +1489,7 @@ static int io_sg_from_iter(struct sk_buff *skb,
|
||||
from->bvec += bi.bi_idx;
|
||||
from->nr_segs -= bi.bi_idx;
|
||||
from->count -= copied;
|
||||
from->iov_offset = bi.bi_bvec_done;
|
||||
from->iov_offset = bi.bi_offset;
|
||||
|
||||
skb->data_len += copied;
|
||||
skb->len += copied;
|
||||
|
||||
Reference in New Issue
Block a user