diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-04-27 21:02:31 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-23 00:10:00 +0300 |
commit | 3140a3d0e990f5528707b676787faa7e29545f32 (patch) | |
tree | 46960ce00c2831ac715de8a0cd6bcaa72d17bc33 /fs | |
parent | 6b52bcde4a2f3c073151356bf960596d2da9716e (diff) | |
download | linux-3140a3d0e990f5528707b676787faa7e29545f32.tar.xz |
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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/bcachefs/extents.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/fs/bcachefs/extents.c b/fs/bcachefs/extents.c index 17e9c434619b..ccefacd0bda7 100644 --- a/fs/bcachefs/extents.c +++ b/fs/bcachefs/extents.c @@ -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); } |