projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
88d39fd
)
bcachefs: Fix handling of unknown bkey types
author
Kent Overstreet
<kent.overstreet@linux.dev>
Fri, 29 Sep 2023 00:24:21 +0000
(20:24 -0400)
committer
Kent Overstreet
<kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:10:16 +0000
(17:10 -0400)
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>
fs/bcachefs/bkey_methods.c
patch
|
blob
|
history
diff --git
a/fs/bcachefs/bkey_methods.c
b/fs/bcachefs/bkey_methods.c
index be9f012fc7be5fc5898de53b4466eb55c6de1cd2..d9fb1fc81f1e17fb45dedf76349177a0abc9f22a 100644
(file)
--- 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,