@@ -165,11 +165,8 @@ static inline bool bio_full(struct bio *bio)
* drivers should _never_ use the all version - the bio may have been split
* before it got to the driver and the driver won't own all of it
*/
-#define bio_for_each_segment_all(bvl, bio, i) \
- for (i = 0, bvl = (bio)->bi_io_vec; i < (bio)->bi_vcnt; i++, bvl++)
-
#define bio_for_each_chunk_all(bvl, bio, i) \
- bio_for_each_segment_all(bvl, bio, i)
+ for (i = 0, bvl = (bio)->bi_io_vec; i < (bio)->bi_vcnt; i++, bvl++)
#define chunk_for_each_segment(bv, bvl, i, citer) \
for (bv = bvec_init_chunk_iter(&citer); \
@@ -47,7 +47,7 @@
* page, so we keep the sp interface not changed, for example,
* bio_for_each_segment() still returns bvec with single page
*
- * - bio_for_each_segment_all() will be changed to return singlepage
+ * - bio_for_each_chunk_all() will be changed to return singlepage
* bvec too
*
* - during iterating, iterator variable(struct bvec_iter) is always
No one uses it any more, so kill it now. Signed-off-by: Ming Lei <ming.lei@redhat.com> --- include/linux/bio.h | 5 +---- include/linux/bvec.h | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-)