summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/util.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2019-07-03 19:27:42 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:08:23 -0400
commit885678f68dd1bf9638087ae8b22051b464f5ec05 (patch)
tree50f741fa071215136b5bb395b5ffe3b4249f12e4 /fs/bcachefs/util.h
parent738540f7fcdd619fe3adb8a27116f0f4371bf711 (diff)
downloadlinux-stable-885678f68dd1bf9638087ae8b22051b464f5ec05.tar.gz
linux-stable-885678f68dd1bf9638087ae8b22051b464f5ec05.tar.bz2
linux-stable-885678f68dd1bf9638087ae8b22051b464f5ec05.zip
bcachefs: Kill direct access to bi_io_vec
Switch to always using bio_add_page(), which merges contiguous pages now that we have multipage bvecs. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/util.h')
-rw-r--r--fs/bcachefs/util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/util.h b/fs/bcachefs/util.h
index c0910f230caf..baa236b4247c 100644
--- a/fs/bcachefs/util.h
+++ b/fs/bcachefs/util.h
@@ -503,7 +503,7 @@ static inline unsigned fract_exp_two(unsigned x, unsigned fract_bits)
return x;
}
-void bch2_bio_map(struct bio *bio, void *base);
+void bch2_bio_map(struct bio *bio, void *base, size_t);
int bch2_bio_alloc_pages(struct bio *, size_t, gfp_t);
static inline sector_t bdev_sectors(struct block_device *bdev)