bcachefs: thread_with_stdio: convert to darray
authorKent Overstreet <kent.overstreet@linux.dev>
Mon, 5 Feb 2024 03:20:40 +0000 (22:20 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Wed, 13 Mar 2024 22:39:13 +0000 (18:39 -0400)
commit60e1baa872a1550ea7c083977c817ca2ede04eaf
treed72ec05bbb89f5b8c3ca0878ad5b50444b83bf8e
parente017047fdb3a449f45d73ea4c4e94465090b93a1
bcachefs: thread_with_stdio: convert to darray

 - eliminate the dependency on printbufs, so that we can lift
   thread_with_file for use in xfs
 - add a nonblocking parameter to stdio_redirect_printf(), and either
   block if the buffer is full or drop it on the floor - don't buffer
   infinitely

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/super.c
fs/bcachefs/thread_with_file.c
fs/bcachefs/thread_with_file.h
fs/bcachefs/thread_with_file_types.h