Commit 9fea089a authored by Kent Overstreet's avatar Kent Overstreet

bcachefs: Check for lru entries with time=0

These are invalid.
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent d7dd3fb8
......@@ -19,6 +19,12 @@ int bch2_lru_invalid(const struct bch_fs *c, struct bkey_s_c k,
return -BCH_ERR_invalid_bkey;
}
if (!k.k->p.offset) {
prt_printf(err, "lru entry at time=0");
return -BCH_ERR_invalid_bkey;
}
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment