mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-02-22 00:00:03 +03:00
Update bcachefs sources to 2d5e6ec144 fixup! bcachefs: Ensure buckets have io_time[READ] set
This commit is contained in:
parent
2668cb95d9
commit
74b88aa9be
@ -1 +1 @@
|
||||
202b20c48f6fa96de566d71b6e1a27e0de00d341
|
||||
2d5e6ec1447dcd1d56683914140750cef8811eb8
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user