summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/thread_with_file.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2024-02-05 02:19:49 +0100
committerKent Overstreet <kent.overstreet@linux.dev>2024-03-13 23:39:13 +0100
commite017047fdb3a449f45d73ea4c4e94465090b93a1 (patch)
tree9b0a3812d4b92b8956113b9d1d9f55526a9f4133 /fs/bcachefs/thread_with_file.h
parentbcachefs: kill kvpmalloc() (diff)
downloadlinux-e017047fdb3a449f45d73ea4c4e94465090b93a1.tar.xz
linux-e017047fdb3a449f45d73ea4c4e94465090b93a1.zip
bcachefs: thread_with_stdio: eliminate double buffering
The output buffer lock has to be a spinlock so that we can write to it from interrupt context, so we can't use a direct copy_to_user; this switches thread_with_file_read() to use fault_in_writeable() and copy_to_user_nofault(), similar to how thread_with_file_write() works. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/thread_with_file.h')
-rw-r--r--fs/bcachefs/thread_with_file.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/bcachefs/thread_with_file.h b/fs/bcachefs/thread_with_file.h
index 05879c5048c8..b5098b52db70 100644
--- a/fs/bcachefs/thread_with_file.h
+++ b/fs/bcachefs/thread_with_file.h
@@ -20,7 +20,6 @@ int bch2_run_thread_with_file(struct thread_with_file *,
struct thread_with_stdio {
struct thread_with_file thr;
struct stdio_redirect stdio;
- DARRAY(char) output2;
void (*exit)(struct thread_with_stdio *);
};