From: Thorsten Blum Date: Sun, 20 Oct 2024 11:20:46 +0000 (+0200) Subject: bcachefs: Use str_write_read() helper in ec_block_endio() X-Git-Tag: v6.14-rc1~204^2~235 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=751d869710ca91b6b2c6f4235137c71eb054ce02;p=thirdparty%2Fkernel%2Flinux.git bcachefs: Use str_write_read() helper in ec_block_endio() Remove hard-coded strings by using the helper function str_write_read(). Signed-off-by: Thorsten Blum Signed-off-by: Kent Overstreet --- diff --git a/fs/bcachefs/ec.c b/fs/bcachefs/ec.c index 8b727d63af3e8..b46bf00c4a674 100644 --- a/fs/bcachefs/ec.c +++ b/fs/bcachefs/ec.c @@ -26,6 +26,7 @@ #include "util.h" #include +#include #ifdef __KERNEL__ @@ -732,7 +733,7 @@ static void ec_block_endio(struct bio *bio) ? BCH_MEMBER_ERROR_write : BCH_MEMBER_ERROR_read, "erasure coding %s error: %s", - bio_data_dir(bio) ? "write" : "read", + str_write_read(bio_data_dir(bio)), bch2_blk_status_to_str(bio->bi_status))) clear_bit(ec_bio->idx, ec_bio->buf->valid);