Add printbuf_err helper to return standard error when
allocation failure.

v2:
  - add printbuf_err helper and use it.

v1: https://lore.kernel.org/all/20240926020002.1746333-2-lihongb...@huawei.com/

Hongbo Li (3):
  bcachefs: add printbuf_err helper
  bcachefs: avoid copy from NULL printbuf when allocation failure
  bcachefs: use printbuf_err helper

 fs/bcachefs/fs.c       | 9 +++++++--
 fs/bcachefs/opts.c     | 7 +------
 fs/bcachefs/printbuf.h | 7 +++++++
 fs/bcachefs/sysfs.c    | 4 +---
 4 files changed, 16 insertions(+), 11 deletions(-)

-- 
2.34.1


Reply via email to