summaryrefslogtreecommitdiff
path: root/fs/bcachefs/sysfs.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2024-04-10 14:32:45 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2024-04-13 14:33:14 -0400
commit17bfae135a5566263c205be41f64884b0d580bc0 (patch)
treec12e4e590ead62b57d85fc246e5041a001016862 /fs/bcachefs/sysfs.c
parent7b07d4ff4883b8246f4e4d5e5a436a4f8a723ddc (diff)
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/sysfs.c')
0 files changed, 0 insertions, 0 deletions