mirror of
https://github.com/torvalds/linux.git
synced 2026-03-07 23:04:33 +01:00
block: remove bio_last_bvec_all
There are no more callers of this function after commit f6b2d8b134
("btrfs: track the next file offset in struct btrfs_bio_ctrl"), so
remove the function.
Signed-off-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Kanchan Joshi <joshi.k@samsung.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
8e5bcc3a95
commit
72a41750f1
2 changed files with 0 additions and 7 deletions
|
|
@ -135,7 +135,6 @@ Usage of helpers:
|
|||
bio_first_bvec_all()
|
||||
bio_first_page_all()
|
||||
bio_first_folio_all()
|
||||
bio_last_bvec_all()
|
||||
|
||||
* The following helpers iterate over single-page segment. The passed 'struct
|
||||
bio_vec' will contain a single-page IO vector during the iteration::
|
||||
|
|
|
|||
|
|
@ -256,12 +256,6 @@ static inline struct folio *bio_first_folio_all(struct bio *bio)
|
|||
return page_folio(bio_first_page_all(bio));
|
||||
}
|
||||
|
||||
static inline struct bio_vec *bio_last_bvec_all(struct bio *bio)
|
||||
{
|
||||
WARN_ON_ONCE(bio_flagged(bio, BIO_CLONED));
|
||||
return &bio->bi_io_vec[bio->bi_vcnt - 1];
|
||||
}
|
||||
|
||||
/**
|
||||
* struct folio_iter - State for iterating all folios in a bio.
|
||||
* @folio: The current folio we're iterating. NULL after the last folio.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue