summaryrefslogtreecommitdiff
path: root/fs/bcachefs/movinggc.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-10-30 22:13:09 +0300
committerKent Overstreet <kent.overstreet@linux.dev>2023-11-05 05:19:11 +0300
commitf82755e4e8b83a4a98ebd6d819d716547fe11919 (patch)
tree4b91b447e899e17bf0098223e5ad813af6ae776c /fs/bcachefs/movinggc.c
parentc4accde498dd7db8352d574958d19a5f710aba69 (diff)
downloadlinux-f82755e4e8b83a4a98ebd6d819d716547fe11919.tar.xz
bcachefs: Data move path now uses bch2_trans_unlock_long()
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/movinggc.c')
-rw-r--r--fs/bcachefs/movinggc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/bcachefs/movinggc.c b/fs/bcachefs/movinggc.c
index e0efa5282a77..4d955f3cc5b2 100644
--- a/fs/bcachefs/movinggc.c
+++ b/fs/bcachefs/movinggc.c
@@ -128,7 +128,7 @@ static void move_buckets_wait(struct moving_context *ctxt,
kfree(i);
}
- bch2_trans_unlock(ctxt->trans);
+ bch2_trans_unlock_long(ctxt->trans);
}
static bool bucket_in_flight(struct buckets_in_flight *list,
@@ -327,7 +327,7 @@ static int bch2_copygc_thread(void *arg)
while (!ret && !kthread_should_stop()) {
bool did_work = false;
- bch2_trans_unlock(ctxt.trans);
+ bch2_trans_unlock_long(ctxt.trans);
cond_resched();
if (!c->copy_gc_enabled) {