projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dbc7deb
)
bcachefs: Fix try_decrease_writepoints()
author
Kent Overstreet
<kent.overstreet@linux.dev>
Sun, 9 Jul 2023 17:49:34 +0000
(13:49 -0400)
committer
Kent Overstreet
<kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:10:06 +0000
(17:10 -0400)
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>
fs/bcachefs/alloc_foreground.c
patch
|
blob
|
history
diff --git
a/fs/bcachefs/alloc_foreground.c
b/fs/bcachefs/alloc_foreground.c
index 06bfcc5a498abf5716db49e93da478ad0163f1ba..fcb7311b184463313b965b01ef1785c1bdc09c43 100644
(file)
--- a/
fs/bcachefs/alloc_foreground.c
+++ b/
fs/bcachefs/alloc_foreground.c
@@
-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;
}