diff options
author | 2024-04-10 14:32:45 -0400 | |
---|---|---|
committer | 2024-05-08 17:29:17 -0400 | |
commit | acce32a51e6c32e0ad8f921f9af2226e6750bb51 (patch) | |
tree | 9e62ed6dbf8eb0e8b2e6c648f6a19e0ce8c05162 /fs/bcachefs/io_read.c | |
parent | bcachefs: Run upgrade/downgrade even in -o nochanges mode (diff) | |
download | wireguard-linux-acce32a51e6c32e0ad8f921f9af2226e6750bb51.tar.xz wireguard-linux-acce32a51e6c32e0ad8f921f9af2226e6750bb51.zip |
bcachefs: printbuf improvements
- fix assorted (harmless) off-by-one errors
- we were inconsistent on whether out->pos stays <= out->size on
overflow; now it does, and printbuf.overflow exists to indicate if a
printbuf has overflowed
- factor out printbuf_advance_pos()
- printbuf_nul_terminate_reserved(); use this to reduce the number of
printbuf_make_room() calls
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/io_read.c')
0 files changed, 0 insertions, 0 deletions