diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-12-29 19:16:14 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-01-05 23:24:19 -0500 |
commit | f60250de329ae6dbf8aeb49ebb13bf0b79e86a1d (patch) | |
tree | 0a6e28e236c481105ba3b4da2eac1d405604631e /fs | |
parent | 8feaebb0ae8882d688b4152c5d693e248d17e623 (diff) | |
download | lwn-f60250de329ae6dbf8aeb49ebb13bf0b79e86a1d.tar.gz lwn-f60250de329ae6dbf8aeb49ebb13bf0b79e86a1d.zip |
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 <kent.overstreet@linux.dev>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/bcachefs/sb-members.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/sb-members.c b/fs/bcachefs/sb-members.c index 4c19a8096c1d..a44a238bf8b5 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:"); |