bcachefs: Fix fsck.c build in userspace

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
Kent Overstreet 2024-11-29 21:12:47 -05:00
parent 9a956407c2
commit 428a2c2d6b

View File

@ -3206,6 +3206,8 @@ int bch2_fix_reflink_p(struct bch_fs *c)
return ret;
}
#ifndef NO_BCACHEFS_CHARDEV
struct fsck_thread {
struct thread_with_stdio thr;
struct bch_fs *c;
@ -3421,3 +3423,5 @@ long bch2_ioctl_fsck_online(struct bch_fs *c, struct bch_ioctl_fsck_online arg)
}
return ret;
}
#endif /* NO_BCACHEFS_CHARDEV */