mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-22 02:20:40 +00:00
bcachefs: Delete obsolete btree ptr check
This patch deletes a .key_invalid check for btree pointers that only applies to _very_ old on disk format versions, and potentially complicates the upgrade process. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
6b52bcde4a
commit
3140a3d0e9
1 changed files with 0 additions and 7 deletions
|
@ -197,13 +197,6 @@ int bch2_btree_ptr_v2_invalid(const struct bch_fs *c, struct bkey_s_c k,
|
|||
return -BCH_ERR_invalid_bkey;
|
||||
}
|
||||
|
||||
if (c->sb.version < bcachefs_metadata_version_snapshot &&
|
||||
bp.v->min_key.snapshot) {
|
||||
prt_printf(err, "invalid min_key.snapshot (%u != 0)",
|
||||
bp.v->min_key.snapshot);
|
||||
return -BCH_ERR_invalid_bkey;
|
||||
}
|
||||
|
||||
return bch2_bkey_ptrs_invalid(c, k, flags, err);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue