Update bcachefs sources to 2d5e6ec144 fixup! bcachefs: Ensure buckets have io_time[READ] set

This commit is contained in:
Kent Overstreet 2022-04-10 22:29:14 -04:00
parent 2668cb95d9
commit 74b88aa9be
2 changed files with 8 additions and 1 deletions

View File

@ -1 +1 @@
202b20c48f6fa96de566d71b6e1a27e0de00d341
2d5e6ec1447dcd1d56683914140750cef8811eb8

View File

@ -1408,6 +1408,13 @@ static int bch2_alloc_write_key(struct btree_trans *trans,
a->v = new;
/*
* The trigger normally makes sure this is set, but we're not running
* triggers:
*/
if (a->v.data_type == BCH_DATA_cached && !a->v.io_time[READ])
a->v.io_time[READ] = max_t(u64, 1, atomic64_read(&c->io_clock[READ].now));
ret = bch2_trans_update(trans, iter, &a->k_i, BTREE_TRIGGER_NORUN);
fsck_err:
return ret;