summaryrefslogtreecommitdiff
path: root/fs/bcachefs
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-09-28 20:24:21 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:10:16 -0400
commit6929d5e74e473fb8b15875c627f7c5ad963c1889 (patch)
treee186e5ed63d658a1ab82a0f0f6bb9bc8978fec3d /fs/bcachefs
parent88d39fd544d44e1243668eb192ff1cc5cdc2d770 (diff)
downloadlwn-6929d5e74e473fb8b15875c627f7c5ad963c1889.tar.gz
lwn-6929d5e74e473fb8b15875c627f7c5ad963c1889.zip
bcachefs: Fix handling of unknown bkey types
min_val_size was U8_MAX for unknown key types, causing us to flag any known key as invalid - it should have been 0. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs')
-rw-r--r--fs/bcachefs/bkey_methods.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/bcachefs/bkey_methods.c b/fs/bcachefs/bkey_methods.c
index be9f012fc7be..d9fb1fc81f1e 100644
--- a/fs/bcachefs/bkey_methods.c
+++ b/fs/bcachefs/bkey_methods.c
@@ -121,7 +121,6 @@ const struct bkey_ops bch2_bkey_ops[] = {
};
const struct bkey_ops bch2_bkey_null_ops = {
- .min_val_size = U8_MAX,
};
int bch2_bkey_val_invalid(struct bch_fs *c, struct bkey_s_c k,