projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0c8369
)
bcachefs: Use str_write_read() helper function
author
Thorsten Blum
<thorsten.blum@linux.dev>
Sat, 19 Oct 2024 12:25:27 +0000
(14:25 +0200)
committer
Kent Overstreet
<kent.overstreet@linux.dev>
Sat, 21 Dec 2024 06:36:15 +0000
(
01:36
-0500)
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>
fs/bcachefs/journal_io.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/bcachefs/journal_io.c
b/fs/bcachefs/journal_io.c
index 9bc0caa9d5e44bcb3340bd0e9cb699a4cbb83bc5..768a3b9509976a85e68a7c3e984a08b237d816b5 100644
(file)
--- a/
fs/bcachefs/journal_io.c
+++ b/
fs/bcachefs/journal_io.c
@@
-17,6
+17,8
@@
#include "sb-clean.h"
#include "trace.h"
+#include <linux/string_choices.h>
+
void bch2_journal_pos_from_member_info_set(struct bch_fs *c)
{
lockdep_assert_held(&c->sb_lock);
@@
-666,7
+668,7
@@
static void journal_entry_clock_to_text(struct printbuf *out, struct bch_fs *c,
struct jset_entry_clock *clock =
container_of(entry, struct jset_entry_clock, entry);
- prt_printf(out, "%s=%llu",
clock->rw ? "write" : "read"
, le64_to_cpu(clock->time));
+ prt_printf(out, "%s=%llu",
str_write_read(clock->rw)
, le64_to_cpu(clock->time));
}
static int journal_entry_dev_usage_validate(struct bch_fs *c,