summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/buckets.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2020-06-15 23:59:09 +0200
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 23:08:41 +0200
commit1d1867896210e0ed6d137cebea83abe01bbb8ffc (patch)
tree43d7954e778fe0d75fa5859e0e55e94eec9cfdde /fs/bcachefs/buckets.c
parentbcachefs: Increase size of btree node reserve (diff)
downloadlinux-1d1867896210e0ed6d137cebea83abe01bbb8ffc.tar.xz
linux-1d1867896210e0ed6d137cebea83abe01bbb8ffc.zip
bcachefs: delete a slightly faulty assertion
state lock isn't held at startup Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to '')
-rw-r--r--fs/bcachefs/buckets.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/bcachefs/buckets.c b/fs/bcachefs/buckets.c
index 1683833568a7..2c9ba18357fd 100644
--- a/fs/bcachefs/buckets.c
+++ b/fs/bcachefs/buckets.c
@@ -1977,8 +1977,6 @@ int bch2_dev_buckets_resize(struct bch_fs *c, struct bch_dev *ca, u64 nbuckets)
int ret = -ENOMEM;
unsigned i;
- lockdep_assert_held(&c->state_lock);
-
memset(&free, 0, sizeof(free));
memset(&free_inc, 0, sizeof(free_inc));
memset(&alloc_heap, 0, sizeof(alloc_heap));