diff options
| author | Thorsten Blum <thorsten.blum@linux.dev> | 2024-10-20 13:20:46 +0200 |
|---|---|---|
| committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-12-21 01:36:15 -0500 |
| commit | 751d869710ca91b6b2c6f4235137c71eb054ce02 (patch) | |
| tree | 21b9341ea97a1df9ca7ceddbe97500a377344b4a | |
| parent | de902e3b4a9881ae02d414d427ad56cc384c9bf1 (diff) | |
| download | linux-751d869710ca91b6b2c6f4235137c71eb054ce02.tar.gz linux-751d869710ca91b6b2c6f4235137c71eb054ce02.zip | |
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>
| -rw-r--r-- | fs/bcachefs/ec.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/bcachefs/ec.c b/fs/bcachefs/ec.c index 8b727d63af3e..b46bf00c4a67 100644 --- a/fs/bcachefs/ec.c +++ b/fs/bcachefs/ec.c @@ -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); |
