bcachefs: Fix fsck.c build in userspace
authorKent Overstreet <kent.overstreet@linux.dev>
Sat, 30 Nov 2024 02:12:47 +0000 (21:12 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sat, 21 Dec 2024 06:36:21 +0000 (01:36 -0500)
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/fsck.c

index f2174528ee5f095a3689e72ef4e9ca7aaf6c8fff..cc15ff135cd6da78205675f8411bb444da351a66 100644 (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 @@ err:
        }
        return ret;
 }
+
+#endif /* NO_BCACHEFS_CHARDEV */