diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2022-03-31 16:57:08 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2022-03-31 16:57:08 -0400 |
commit | 70f2681838973f20a918b518f82d382b3556963d (patch) | |
tree | 6fe669df2e5cca41c4065bb717d0826250fa9219 /libbcachefs/lru.c | |
parent | cc1b64e992b52d19b24cdc7677fc451c60d2c9d4 (diff) |
Update bcachefs sources to 5e392aed7a bcachefs: Kill bch2_alloc_write()v0.20
Diffstat (limited to 'libbcachefs/lru.c')
-rw-r--r-- | libbcachefs/lru.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libbcachefs/lru.c b/libbcachefs/lru.c index 1772ccb2..4f0e6960 100644 --- a/libbcachefs/lru.c +++ b/libbcachefs/lru.c @@ -126,7 +126,7 @@ static int bch2_check_lru_key(struct btree_trans *trans, struct bch_fs *c = trans->c; struct btree_iter iter; struct bkey_s_c lru_k, k; - struct bkey_alloc_unpacked a; + struct bch_alloc_v4 a; struct printbuf buf1 = PRINTBUF; struct printbuf buf2 = PRINTBUF; u64 idx; @@ -149,10 +149,10 @@ static int bch2_check_lru_key(struct btree_trans *trans, if (ret) goto err; - a = bch2_alloc_unpack(k); + bch2_alloc_to_v4(k, &a); if (fsck_err_on(bucket_state(a) != BUCKET_cached || - a.read_time != lru_k.k->p.offset, c, + a.io_time[READ] != lru_k.k->p.offset, c, "incorrect lru entry %s\n" " for %s", (bch2_bkey_val_to_text(&buf1, c, lru_k), buf1.buf), |