Skip to content

Commit 72a4175

Browse files
keithbuschaxboe
authored andcommitted
block: remove bio_last_bvec_all
There are no more callers of this function after commit f6b2d8b ("btrfs: track the next file offset in struct btrfs_bio_ctrl"), so remove the function. Signed-off-by: Keith Busch <[email protected]> Reviewed-by: Kanchan Joshi <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
1 parent 8e5bcc3 commit 72a4175

2 files changed

Lines changed: 0 additions & 7 deletions

File tree

Documentation/block/biovecs.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ Usage of helpers:
135135
bio_first_bvec_all()
136136
bio_first_page_all()
137137
bio_first_folio_all()
138-
bio_last_bvec_all()
139138

140139
* The following helpers iterate over single-page segment. The passed 'struct
141140
bio_vec' will contain a single-page IO vector during the iteration::

include/linux/bio.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -256,12 +256,6 @@ static inline struct folio *bio_first_folio_all(struct bio *bio)
256256
return page_folio(bio_first_page_all(bio));
257257
}
258258

259-
static inline struct bio_vec *bio_last_bvec_all(struct bio *bio)
260-
{
261-
WARN_ON_ONCE(bio_flagged(bio, BIO_CLONED));
262-
return &bio->bi_io_vec[bio->bi_vcnt - 1];
263-
}
264-
265259
/**
266260
* struct folio_iter - State for iterating all folios in a bio.
267261
* @folio: The current folio we're iterating. NULL after the last folio.

0 commit comments

Comments
 (0)