diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2018-11-22 23:05:13 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2018-12-03 11:24:14 -0500 |
commit | 8ab362b48df6aa02e55890e1ca493411f435a168 (patch) | |
tree | cc5b7c48735abb4f15c7baeb7102a2bea60f155e | |
parent | 0a4382e531d7f2c78e7f73cc06d49e664515a280 (diff) |
bcachefs: Allow for new alloc fields
-rw-r--r-- | fs/bcachefs/alloc_background.c | 3 |
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; } |