]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: twf: convert bch2_stdio_redirect_readline() to darray
authorKent Overstreet <kent.overstreet@linux.dev>
Thu, 30 May 2024 00:34:48 +0000 (20:34 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 14 Jul 2024 23:00:14 +0000 (19:00 -0400)
commit0c97c437e362fb825b7501bd5da801bac77981b4
tree043eb2b235194e021568ffab24536473d197e71b
parent36008d5d01ad155e14fd9df876d4356433613088
bcachefs: twf: convert bch2_stdio_redirect_readline() to darray

We now read the line from the buffer atomically, which means we have to
allow the buffer to grow past STDIO_REDIRECT_BUFSIZE if we're waiting
for a full line - this behaviour is necessary for
stdio_redirect_readline_timeout() in the next patch.

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