Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

block: remove bio_last_bvec_all

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>

authored by

Keith Busch and committed by
Jens Axboe
72a41750 8e5bcc3a

-7
-1
Documentation/block/biovecs.rst
··· 135 135 bio_first_bvec_all() 136 136 bio_first_page_all() 137 137 bio_first_folio_all() 138 - bio_last_bvec_all() 139 138 140 139 * The following helpers iterate over single-page segment. The passed 'struct 141 140 bio_vec' will contain a single-page IO vector during the iteration::
-6
include/linux/bio.h
··· 256 256 return page_folio(bio_first_page_all(bio)); 257 257 } 258 258 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 - 265 259 /** 266 260 * struct folio_iter - State for iterating all folios in a bio. 267 261 * @folio: The current folio we're iterating. NULL after the last folio.