From: Kent Overstreet Date: Sat, 30 Dec 2023 00:16:14 +0000 (-0500) Subject: bcachefs: Fix printing of device durability X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=f60250de329ae6dbf8aeb49ebb13bf0b79e86a1d;p=linux.git bcachefs: Fix printing of device durability BCH_MEMBER_DURABILITY() was not present initially; a value of 0 means use the default, nonzero means use v - 1. Signed-off-by: Kent Overstreet --- diff --git a/fs/bcachefs/sb-members.c b/fs/bcachefs/sb-members.c index 4c19a8096c1df..a44a238bf8b55 100644 --- a/fs/bcachefs/sb-members.c +++ b/fs/bcachefs/sb-members.c @@ -266,7 +266,7 @@ static void member_to_text(struct printbuf *out, prt_str(out, "Durability:"); prt_tab(out); - prt_printf(out, "%llu", BCH_MEMBER_DURABILITY(&m)); + prt_printf(out, "%llu", BCH_MEMBER_DURABILITY(&m) ? BCH_MEMBER_DURABILITY(&m) - 1 : 1); prt_newline(out); prt_printf(out, "Discard:");