bcachefs: Debugfs cleanup
authorKent Overstreet <kent.overstreet@gmail.com>
Sun, 14 Aug 2022 20:11:35 +0000 (16:11 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:38 +0000 (17:09 -0400)
commit9375fbc20079ed0c8a10d8d387b2c173a3dc04d7
treecbddc66dfe8fd66bb74924451d962777fb6e6867
parentc59d66b51b11064f17d87d5b9695e0216b8ade99
bcachefs: Debugfs cleanup

This improves flush_buf() so that it always returns nonzero when we're
done reading and ready to return to userspace, and so that it returns
the value we want to return to userspace (number of bytes read, if there
wasn't an error).

In the future we'll be better abstracting this mechanism and pulling it
out of bcachefs, and using it to replace seq_file.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
fs/bcachefs/debug.c