mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-05 17:03:47 -04:00
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 <thorsten.blum@linux.dev> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
committed by
Kent Overstreet
parent
de902e3b4a
commit
751d869710
@@ -26,6 +26,7 @@
|
||||
#include "util.h"
|
||||
|
||||
#include <linux/sort.h>
|
||||
#include <linux/string_choices.h>
|
||||
|
||||
#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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user