summaryrefslogtreecommitdiff
path: root/fs/bcachefs
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2024-01-03 21:46:50 -0500
committerKent Overstreet <kent.overstreet@linux.dev>2024-01-05 23:24:20 -0500
commitd641d4cae72a178334c0c712f701f62cebde18ec (patch)
tree664aa06dc6b21c528cab3c9025b2f4a9748878ca /fs/bcachefs
parenta64a37338d49a79647d332f1f510daafffeab4ad (diff)
bcachefs: no thread_with_file in userspace
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs')
-rw-r--r--fs/bcachefs/thread_with_file.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/bcachefs/thread_with_file.c b/fs/bcachefs/thread_with_file.c
index b24baeabf998..b1c867aa2b58 100644
--- a/fs/bcachefs/thread_with_file.c
+++ b/fs/bcachefs/thread_with_file.c
@@ -1,4 +1,5 @@
// SPDX-License-Identifier: GPL-2.0
+#ifndef NO_BCACHEFS_FS
#include "bcachefs.h"
#include "printbuf.h"
@@ -294,3 +295,5 @@ int bch2_stdio_redirect_readline(struct stdio_redirect *stdio, char *buf, size_t
wake_up(&stdio->input_wait);
return ret;
}
+
+#endif /* NO_BCACHEFS_FS */