diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2018-03-20 03:54:50 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2018-03-20 03:54:50 -0400 |
commit | ff5e165532a2eed87700649d03f91a612a58e92a (patch) | |
tree | 7055fa329edebf03fc059a7e26ded01c464defce /libbcachefs/io.c | |
parent | 33d0a49489c60df4df924bfbc0c7ad98a11dd3ed (diff) |
Update bcachefs sources to 9fc6ccd865 bcachefs: fix copygc_pred()
Diffstat (limited to 'libbcachefs/io.c')
-rw-r--r-- | libbcachefs/io.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libbcachefs/io.c b/libbcachefs/io.c index d1fb89c5..7ee9c392 100644 --- a/libbcachefs/io.c +++ b/libbcachefs/io.c @@ -732,11 +732,11 @@ static void __bch2_write(struct closure *cl) int ret; do { - if (op->open_buckets_nr + op->nr_replicas > + /* +1 for possible cache device: */ + if (op->open_buckets_nr + op->nr_replicas + 1 > ARRAY_SIZE(op->open_buckets)) continue_at(cl, bch2_write_index, index_update_wq(op)); - /* for the device pointers and 1 for the chksum */ if (bch2_keylist_realloc(&op->insert_keys, op->inline_keys, ARRAY_SIZE(op->inline_keys), |