summaryrefslogtreecommitdiff
path: root/fs/bcachefs/compress.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2019-07-04 10:48:25 +0300
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-23 00:08:23 +0300
commit0fd7263e2e55d43317e85e9f7a4e67de9fa0ec90 (patch)
tree90c3038eab119599458280cfc2a85aadf1261fbd /fs/bcachefs/compress.c
parent885678f68dd1bf9638087ae8b22051b464f5ec05 (diff)
downloadlinux-0fd7263e2e55d43317e85e9f7a4e67de9fa0ec90.tar.xz
bcachefs: kill bio_for_each_contig_segment()
With multipage bvecs it's not needed anymore Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/compress.c')
-rw-r--r--fs/bcachefs/compress.c2
1 files changed, 1 insertions, 1 deletions
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,