summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2018-11-22 23:05:13 -0500
committerKent Overstreet <kent.overstreet@gmail.com>2018-12-03 11:24:14 -0500
commit8ab362b48df6aa02e55890e1ca493411f435a168 (patch)
treecc5b7c48735abb4f15c7baeb7102a2bea60f155e
parent0a4382e531d7f2c78e7f73cc06d49e664515a280 (diff)
bcachefs: Allow for new alloc fields
-rw-r--r--fs/bcachefs/alloc_background.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/bcachefs/alloc_background.c b/fs/bcachefs/alloc_background.c
index edc87f8c3339..899291633f98 100644
--- a/fs/bcachefs/alloc_background.c
+++ b/fs/bcachefs/alloc_background.c
@@ -83,7 +83,8 @@ const char *bch2_alloc_invalid(const struct bch_fs *c, struct bkey_s_c k)
case BCH_ALLOC: {
struct bkey_s_c_alloc a = bkey_s_c_to_alloc(k);
- if (bch_alloc_val_u64s(a.v) != bkey_val_u64s(a.k))
+ /* allow for unknown fields */
+ if (bkey_val_u64s(a.k) < bch_alloc_val_u64s(a.v))
return "incorrect value size";
break;
}