diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2024-02-17 20:49:11 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-02-27 13:59:06 -0500 |
commit | e913944e1fa77dfce7f35c07020cf98a6666adf4 (patch) | |
tree | 1547ab4093b3d5d336e886ea7fc0d22f0353e856 /include/linux/thread_with_file.h | |
parent | 1e43327115dddff2a4b77fcde3738c45bcdea769 (diff) |
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 'include/linux/thread_with_file.h')
-rw-r--r-- | include/linux/thread_with_file.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/thread_with_file.h b/include/linux/thread_with_file.h index 33770938d5d9..cf44337af3e9 100644 --- a/include/linux/thread_with_file.h +++ b/include/linux/thread_with_file.h @@ -56,7 +56,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); }; |