summaryrefslogtreecommitdiff
path: root/net/ceph
diff options
context:
space:
mode:
authorPavel Begunkov <asml.silence@gmail.com>2026-08-06 13:19:27 +0100
committerJens Axboe <axboe@kernel.dk>2026-08-06 06:47:33 -0600
commitb539aeacf8cc5e9d8e5d94625d2d9c697a167add (patch)
tree70fca840f1b06bc57c3d8868be7c00e6412b5a6c /net/ceph
parenta600051da14b4cacc7b00685c967f40b0425ef5b (diff)
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>
Diffstat (limited to 'net/ceph')
-rw-r--r--net/ceph/messenger.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ceph/messenger.c b/net/ceph/messenger.c
index 34b3097b4c7b..9c1b6cf8c36f 100644
--- a/net/ceph/messenger.c
+++ b/net/ceph/messenger.c
@@ -762,7 +762,7 @@ static bool ceph_msg_data_bio_advance(struct ceph_msg_data_cursor *cursor,
if (!cursor->resid)
return false; /* no more data */
- if (!bytes || (it->iter.bi_size && it->iter.bi_bvec_done &&
+ if (!bytes || (it->iter.bi_size && it->iter.bi_offset &&
page == bio_iter_page(it->bio, it->iter)))
return false; /* more bytes to process in this segment */
@@ -817,7 +817,7 @@ static bool ceph_msg_data_bvecs_advance(struct ceph_msg_data_cursor *cursor,
if (!cursor->resid)
return false; /* no more data */
- if (!bytes || (cursor->bvec_iter.bi_bvec_done &&
+ if (!bytes || (cursor->bvec_iter.bi_offset &&
page == bvec_iter_page(bvecs, cursor->bvec_iter)))
return false; /* more bytes to process in this segment */