summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/io_write.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2025-03-20 10:25:15 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2025-03-24 09:50:36 -0400
commit2fe208303a114012d7ca035dcb37edcee93b64f6 (patch)
tree7a52aa887cd7053f090aec344cbf1454b6772fb9 /fs/bcachefs/io_write.h
parentbcachefs: Fix block/btree node size defaults (diff)
downloadlinux-2fe208303a114012d7ca035dcb37edcee93b64f6.tar.gz
linux-2fe208303a114012d7ca035dcb37edcee93b64f6.zip
bcachefs: Simplify bch2_write_op_error()
There's no reason for the caller to do the actual logging, it's all done the same. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/io_write.h')
-rw-r--r--fs/bcachefs/io_write.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/fs/bcachefs/io_write.h b/fs/bcachefs/io_write.h
index 627730537752..b8ab19a1e1da 100644
--- a/fs/bcachefs/io_write.h
+++ b/fs/bcachefs/io_write.h
@@ -14,13 +14,8 @@ void bch2_bio_alloc_pages_pool(struct bch_fs *, struct bio *, size_t);
void bch2_submit_wbio_replicas(struct bch_write_bio *, struct bch_fs *,
enum bch_data_type, const struct bkey_i *, bool);
-__printf(5, 6)
-void bch2_write_op_error_trans(struct btree_trans *trans, struct printbuf *out,
- struct bch_write_op *op, u64, const char *, ...);
-
-__printf(4, 5)
-void bch2_write_op_error(struct printbuf *out, struct bch_write_op *op, u64,
- const char *, ...);
+__printf(3, 4)
+void bch2_write_op_error(struct bch_write_op *op, u64, const char *, ...);
#define BCH_WRITE_FLAGS() \
x(alloc_nowait) \