summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/thread_with_file.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2024-02-18 02:49:11 +0100
committerKent Overstreet <kent.overstreet@linux.dev>2024-03-14 02:22:20 +0100
commitda23795e4c3ae0efd701e81b54c5c42d4b6f37f4 (patch)
tree2af27d7df97be0ad77d583f572c8b8bdd3e40fd1 /fs/bcachefs/thread_with_file.h
parentbcachefs: thread_with_file: Fix missing va_end() (diff)
downloadlinux-da23795e4c3ae0efd701e81b54c5c42d4b6f37f4.tar.xz
linux-da23795e4c3ae0efd701e81b54c5c42d4b6f37f4.zip
bcachefs: thread_with_file: add f_ops.flush
Add a flush op, to return the exit code via close(). Also update bcachefs usage to use this to return fsck exit codes. 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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/thread_with_file.h b/fs/bcachefs/thread_with_file.h
index f0b8c04ed4a4..af54ea8f5b0f 100644
--- a/fs/bcachefs/thread_with_file.h
+++ b/fs/bcachefs/thread_with_file.h
@@ -53,7 +53,7 @@ struct thread_with_stdio;
struct thread_with_stdio_ops {
void (*exit)(struct thread_with_stdio *);
- void (*fn)(struct thread_with_stdio *);
+ int (*fn)(struct thread_with_stdio *);
long (*unlocked_ioctl)(struct thread_with_stdio *, unsigned int, unsigned long);
};