Commit 1d186789 authored by Kent Overstreet's avatar Kent Overstreet Committed by Kent Overstreet

bcachefs: delete a slightly faulty assertion

state lock isn't held at startup
Signed-off-by: default avatarKent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 7dd1ebfa
...@@ -1977,8 +1977,6 @@ int bch2_dev_buckets_resize(struct bch_fs *c, struct bch_dev *ca, u64 nbuckets) ...@@ -1977,8 +1977,6 @@ int bch2_dev_buckets_resize(struct bch_fs *c, struct bch_dev *ca, u64 nbuckets)
int ret = -ENOMEM; int ret = -ENOMEM;
unsigned i; unsigned i;
lockdep_assert_held(&c->state_lock);
memset(&free, 0, sizeof(free)); memset(&free, 0, sizeof(free));
memset(&free_inc, 0, sizeof(free_inc)); memset(&free_inc, 0, sizeof(free_inc));
memset(&alloc_heap, 0, sizeof(alloc_heap)); memset(&alloc_heap, 0, sizeof(alloc_heap));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment