mirror of
https://github.com/torvalds/linux.git
synced 2024-11-27 06:31:52 +00:00
bcachefs: Fix try_decrease_writepoints()
We were freeing open buckets on the writepoint list, but forgetting to take them off the writepoint list - whoops Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
dbc7deb2af
commit
e8ee5cc733
@ -1193,6 +1193,7 @@ static bool try_decrease_writepoints(struct btree_trans *trans, unsigned old_nr)
|
||||
bch2_trans_mutex_lock_norelock(trans, &wp->lock);
|
||||
open_bucket_for_each(c, &wp->ptrs, ob, i)
|
||||
open_bucket_free_unused(c, ob);
|
||||
wp->ptrs.nr = 0;
|
||||
mutex_unlock(&wp->lock);
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user