summaryrefslogtreecommitdiff
path: root/libbcachefs/chardev.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2024-04-17 01:44:12 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2024-04-17 01:44:20 -0400
commitc824bbe69db5d7ff5722033af1dcd01f41348206 (patch)
tree2c242a9f85fb1bcd9847e5be9e746621397f7dc6 /libbcachefs/chardev.c
parentcf44deafe69a691d9f2087155b8943e600093394 (diff)
Update bcachefs sources to 10ca1f99f8c9 bcachefs: Fix bch2_dev_btree_bitmap_marked_sectors() shift
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'libbcachefs/chardev.c')
-rw-r--r--libbcachefs/chardev.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libbcachefs/chardev.c b/libbcachefs/chardev.c
index 72781aad..4d14f19f 100644
--- a/libbcachefs/chardev.c
+++ b/libbcachefs/chardev.c
@@ -232,13 +232,15 @@ static long bch2_ioctl_fsck_offline(struct bch_ioctl_fsck_offline __user *user_a
/* We need request_key() to be called before we punt to kthread: */
opt_set(thr->opts, nostart, true);
+ bch2_thread_with_stdio_init(&thr->thr, &bch2_offline_fsck_ops);
+
thr->c = bch2_fs_open(devs.data, arg.nr_devs, thr->opts);
if (!IS_ERR(thr->c) &&
thr->c->opts.errors == BCH_ON_ERROR_panic)
thr->c->opts.errors = BCH_ON_ERROR_ro;
- ret = bch2_run_thread_with_stdio(&thr->thr, &bch2_offline_fsck_ops);
+ ret = __bch2_run_thread_with_stdio(&thr->thr);
out:
darray_for_each(devs, i)
kfree(*i);