summaryrefslogtreecommitdiff
path: root/libbcachefs/thread_with_file_types.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2024-01-05 12:38:14 -0500
committerKent Overstreet <kent.overstreet@linux.dev>2024-01-05 13:01:34 -0500
commit799439a88ab7afe99e5052894c20ea77133a1551 (patch)
treea9c5a0bd777e2e0d616bcbf44d8b1f3ef0d4ae1a /libbcachefs/thread_with_file_types.h
parent605e2311d9cfbc1acc7ba9181a05b8976d42ea46 (diff)
Update bcachefs sources to d267e10a43b2 bcachefs: __bch2_sb_field_to_text()
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'libbcachefs/thread_with_file_types.h')
-rw-r--r--libbcachefs/thread_with_file_types.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/libbcachefs/thread_with_file_types.h b/libbcachefs/thread_with_file_types.h
new file mode 100644
index 00000000..90b5e645
--- /dev/null
+++ b/libbcachefs/thread_with_file_types.h
@@ -0,0 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#ifndef _BCACHEFS_THREAD_WITH_FILE_TYPES_H
+#define _BCACHEFS_THREAD_WITH_FILE_TYPES_H
+
+struct stdio_redirect {
+ spinlock_t output_lock;
+ wait_queue_head_t output_wait;
+ struct printbuf output_buf;
+
+ spinlock_t input_lock;
+ wait_queue_head_t input_wait;
+ struct printbuf input_buf;
+ bool done;
+};
+
+#endif /* _BCACHEFS_THREAD_WITH_FILE_TYPES_H */