From 0fd7263e2e55d43317e85e9f7a4e67de9fa0ec90 Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Thu, 4 Jul 2019 03:48:25 -0400 Subject: bcachefs: kill bio_for_each_contig_segment() With multipage bvecs it's not needed anymore Signed-off-by: Kent Overstreet --- fs/bcachefs/compress.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fs/bcachefs/compress.c') diff --git a/fs/bcachefs/compress.c b/fs/bcachefs/compress.c index 3e91fa53985a..1a51a8c3e95c 100644 --- a/fs/bcachefs/compress.c +++ b/fs/bcachefs/compress.c @@ -66,7 +66,7 @@ static struct bbuf __bio_map_or_bounce(struct bch_fs *c, struct bio *bio, BUG_ON(bvec_iter_sectors(start) > c->sb.encoded_extent_max); #ifndef CONFIG_HIGHMEM - __bio_for_each_contig_segment(bv, bio, iter, start) { + __bio_for_each_bvec(bv, bio, iter, start) { if (bv.bv_len == start.bi_size) return (struct bbuf) { .b = page_address(bv.bv_page) + bv.bv_offset, -- cgit