From: Thorsten Blum Date: Sat, 26 Oct 2024 10:47:23 +0000 (+0200) Subject: bcachefs: Use str_write_read() helper in write_super_endio() X-Git-Tag: v6.14-rc1~204^2~234 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ac9826f14739023bccf1345e6e4ddb0461fa9a2e;p=thirdparty%2Fkernel%2Flinux.git bcachefs: Use str_write_read() helper in write_super_endio() Remove hard-coded strings by using the str_write_read() helper function. Signed-off-by: Thorsten Blum Signed-off-by: Kent Overstreet --- diff --git a/fs/bcachefs/super-io.c b/fs/bcachefs/super-io.c index 7c71594f6a8bd..c83bd3dedb1b9 100644 --- a/fs/bcachefs/super-io.c +++ b/fs/bcachefs/super-io.c @@ -23,6 +23,7 @@ #include #include +#include static const struct blk_holder_ops bch2_sb_handle_bdev_ops = { }; @@ -878,7 +879,7 @@ static void write_super_endio(struct bio *bio) ? BCH_MEMBER_ERROR_write : BCH_MEMBER_ERROR_read, "superblock %s error: %s", - bio_data_dir(bio) ? "write" : "read", + str_write_read(bio_data_dir(bio)), bch2_blk_status_to_str(bio->bi_status))) ca->sb_write_error = 1;