Searched refs:stdio (Results 1 – 7 of 7) sorted by relevance
| /fs/bcachefs/ |
| A D | thread_with_file.c | 72 return stdio->input.buf.nr > seen || stdio->done; in stdio_redirect_has_more_input() 82 return stdio->output.buf.nr || stdio->done; in stdio_redirect_has_output() 89 return stdio->input.buf.nr < STDIO_REDIRECT_BUFSIZE || stdio->done; in stdio_redirect_has_input_space() 94 return stdio->output.buf.nr < STDIO_REDIRECT_BUFSIZE || stdio->done; in stdio_redirect_has_output_space() 109 thr->stdio.done = true; in thread_with_stdio_done() 110 wake_up(&thr->stdio.input.wait); in thread_with_stdio_done() 111 wake_up(&thr->stdio.output.wait); in thread_with_stdio_done() 161 darray_exit(&thr->stdio.input.buf); in thread_with_stdio_release() 349 if (stdio->done) in bch2_stdio_redirect_read() 381 if (stdio->done) in bch2_stdio_redirect_readline_timeout() [all …]
|
| A D | error.c | 206 struct stdio_redirect *stdio = c->stdio; in bch2_fsck_ask_yn() local 209 stdio = NULL; in bch2_fsck_ask_yn() 211 if (!stdio) in bch2_fsck_ask_yn() 229 int r = bch2_stdio_redirect_readline_timeout(stdio, &line, t); in bch2_fsck_ask_yn()
|
| A D | super.c | 110 struct stdio_redirect *stdio = bch2_fs_stdio_redirect(c); in __bch2_print_str() local 112 if (unlikely(stdio)) { in __bch2_print_str() 113 bch2_stdio_redirect_printf(stdio, true, "%s", str); in __bch2_print_str() 126 static void bch2_print_maybe_redirect(struct stdio_redirect *stdio, const char *fmt, va_list args) in bch2_print_maybe_redirect() argument 129 if (unlikely(stdio)) { in bch2_print_maybe_redirect() 133 bch2_stdio_redirect_vprintf(stdio, true, fmt, args); in bch2_print_maybe_redirect() 142 struct stdio_redirect *stdio = (void *)(unsigned long)opts->stdio; in bch2_print_opts() local 146 bch2_print_maybe_redirect(stdio, fmt, args); in bch2_print_opts() 152 struct stdio_redirect *stdio = bch2_fs_stdio_redirect(c); in __bch2_print() local 156 bch2_print_maybe_redirect(stdio, fmt, args); in __bch2_print() [all …]
|
| A D | bcachefs.h | 798 struct stdio_redirect *stdio; member 1251 struct stdio_redirect *stdio = c->stdio; in bch2_fs_stdio_redirect() local 1254 stdio = NULL; in bch2_fs_stdio_redirect() 1255 return stdio; in bch2_fs_stdio_redirect()
|
| A D | thread_with_file.h | 62 struct stdio_redirect stdio; member
|
| A D | fsck.c | 3160 static int bch2_fsck_offline_thread_fn(struct thread_with_stdio *stdio) in bch2_fsck_offline_thread_fn() argument 3162 struct fsck_thread *thr = container_of(stdio, struct fsck_thread, thr); in bch2_fsck_offline_thread_fn() 3174 bch2_stdio_redirect_printf(&stdio->stdio, false, "%s: errors fixed\n", c->name); in bch2_fsck_offline_thread_fn() 3178 bch2_stdio_redirect_printf(&stdio->stdio, false, "%s: still has errors\n", c->name); in bch2_fsck_offline_thread_fn() 3244 opt_set(thr->opts, stdio, (u64)(unsigned long)&thr->thr.stdio); in bch2_ioctl_fsck_offline() 3272 static int bch2_fsck_online_thread_fn(struct thread_with_stdio *stdio) in bch2_fsck_online_thread_fn() argument 3274 struct fsck_thread *thr = container_of(stdio, struct fsck_thread, thr); in bch2_fsck_online_thread_fn() 3278 c->stdio = &thr->thr.stdio; in bch2_fsck_online_thread_fn() 3297 c->stdio = NULL; in bch2_fsck_online_thread_fn()
|
| A D | opts.h | 468 x(stdio, u64, \
|
Completed in 24 milliseconds