summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2018-07-24 03:52:31 -0400
committerJens Axboe <axboe@kernel.dk>2018-07-24 16:43:20 -0400
commit076ff2f0b877df4ace6604480f9b1278e61719b8 (patch)
tree0fcc867cb14adabb682baa9583622a500560be78
parentc8b27acc775990bbd01f067ee7616f7abf2c98a1 (diff)
exofs: use bio_clone_fast in _write_mirror
The mirroring code never changes the bio data or biovecs. This means we can reuse the biovec allocation easily instead of duplicating it. Signed-off-by: Christoph Hellwig <hch@lst.de> Acked-by Boaz Harrosh <ooo@electrozaur.com> Reviewed-by: Ming Lei <ming.lei@redhat.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--fs/exofs/ore.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/exofs/ore.c b/fs/exofs/ore.c
index 1b8b44637e70..5331a15a61f1 100644
--- a/fs/exofs/ore.c
+++ b/fs/exofs/ore.c
@@ -873,8 +873,8 @@ static int _write_mirror(struct ore_io_state *ios, int cur_comp)
873 struct bio *bio; 873 struct bio *bio;
874 874
875 if (per_dev != master_dev) { 875 if (per_dev != master_dev) {
876 bio = bio_clone_kmalloc(master_dev->bio, 876 bio = bio_clone_fast(master_dev->bio,
877 GFP_KERNEL); 877 GFP_KERNEL, NULL);
878 if (unlikely(!bio)) { 878 if (unlikely(!bio)) {
879 ORE_DBGMSG( 879 ORE_DBGMSG(
880 "Failed to allocate BIO size=%u\n", 880 "Failed to allocate BIO size=%u\n",