summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/thread_with_file.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2024-02-17 20:49:11 -0500
committerKent Overstreet <kent.overstreet@linux.dev>2024-03-13 21:22:20 -0400
commitda23795e4c3ae0efd701e81b54c5c42d4b6f37f4 (patch)
tree2af27d7df97be0ad77d583f572c8b8bdd3e40fd1 /fs/bcachefs/thread_with_file.h
parent6b33312925a77c24905cef1356c2b63a6149d8a1 (diff)
downloadlinux-da23795e4c3ae0efd701e81b54c5c42d4b6f37f4.tar.gz
linux-da23795e4c3ae0efd701e81b54c5c42d4b6f37f4.tar.bz2
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);
};