]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
block: remove bio_last_bvec_all
authorKeith Busch <kbusch@kernel.org>
Mon, 26 Jan 2026 16:27:24 +0000 (08:27 -0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 27 Jan 2026 04:07:48 +0000 (21:07 -0700)
There are no more callers of this function after commit f6b2d8b134b2413
("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>
Documentation/block/biovecs.rst
include/linux/bio.h

index b9dc0c9dbee44868999f3412d6c1e43e6b487183..11126ed6f40f7895044a463b5d148801255e540c 100644 (file)
@@ -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::
index c75a9b3672aa414589970a3b59f07a756d5707fe..d32aee2857a9ae2369a3b8c013a558a0065ef232 100644 (file)
@@ -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.