aboutsummaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/thread_with_file_types.h
blob: 90b5e645e98ce5352acf8fa36f21d526fd5bc180 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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 */