summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/alloc_foreground.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2024-04-19 22:44:12 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2024-05-08 17:29:20 -0400
commit103304021e54bfb5cab9ba04cd5ef0dc2bf33888 (patch)
tree290f599143bec9f28307836245a152dd19db992b /fs/bcachefs/alloc_foreground.c
parentb25fd02ab4edb0193e60754626704adacbfbeefb (diff)
downloadlinux-103304021e54bfb5cab9ba04cd5ef0dc2bf33888.tar.gz
linux-103304021e54bfb5cab9ba04cd5ef0dc2bf33888.tar.bz2
linux-103304021e54bfb5cab9ba04cd5ef0dc2bf33888.zip
bcachefs: Move gc of bucket.oldest_gen to workqueue
This is a nice cleanup - and we've also been having problems with kthread creation in the mount path. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/alloc_foreground.c')
-rw-r--r--fs/bcachefs/alloc_foreground.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/alloc_foreground.c b/fs/bcachefs/alloc_foreground.c
index fb8825c4e7ad..6cb878f5e5eb 100644
--- a/fs/bcachefs/alloc_foreground.c
+++ b/fs/bcachefs/alloc_foreground.c
@@ -541,7 +541,7 @@ again:
bch2_do_discards(c);
if (usage->d[BCH_DATA_need_gc_gens].buckets > avail)
- bch2_do_gc_gens(c);
+ bch2_gc_gens_async(c);
if (should_invalidate_buckets(ca, *usage))
bch2_do_invalidates(c);