bcachefs: thread_with_file: add f_ops.flush
authorKent Overstreet <kent.overstreet@linux.dev>
Sun, 18 Feb 2024 01:49:11 +0000 (20:49 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Thu, 14 Mar 2024 01:22:20 +0000 (21:22 -0400)
commitda23795e4c3ae0efd701e81b54c5c42d4b6f37f4
tree2af27d7df97be0ad77d583f572c8b8bdd3e40fd1
parent6b33312925a77c24905cef1356c2b63a6149d8a1
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>
fs/bcachefs/chardev.c
fs/bcachefs/thread_with_file.c
fs/bcachefs/thread_with_file.h