diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2021-06-10 20:21:18 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2021-06-10 20:25:55 -0400 |
commit | ff578c6718bb6bbeb8f33f2f52ebfb4b4b28edc7 (patch) | |
tree | a7fb0b5b164387f889b60ba561c93a4a8f3b6650 /libbcachefs/ec.c | |
parent | 58ae103b0a2b5d881d6e8ff68fe17bb822148ce7 (diff) |
Update bcachefs sources to 69be0dae31 bcachefs: Always zero memory from bch2_trans_kmalloc()
Diffstat (limited to 'libbcachefs/ec.c')
-rw-r--r-- | libbcachefs/ec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libbcachefs/ec.c b/libbcachefs/ec.c index db6e4f6c..48f9232e 100644 --- a/libbcachefs/ec.c +++ b/libbcachefs/ec.c @@ -392,7 +392,7 @@ static void ec_block_io(struct bch_fs *c, struct ec_stripe_buf *buf, this_cpu_add(ca->io_done->sectors[rw][data_type], buf->size); while (offset < bytes) { - unsigned nr_iovecs = min_t(size_t, BIO_MAX_PAGES, + unsigned nr_iovecs = min_t(size_t, BIO_MAX_VECS, DIV_ROUND_UP(bytes, PAGE_SIZE)); unsigned b = min_t(size_t, bytes - offset, nr_iovecs << PAGE_SHIFT); |