mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-15 15:15:47 +00:00
bcachefs: Fix extent_ptr_durability() calculation for erasure coded data
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
89fd25be70
commit
1d2ff0a630
1 changed files with 1 additions and 1 deletions
|
@ -723,7 +723,7 @@ static unsigned bch2_extent_ptr_durability(struct bch_fs *c,
|
|||
if (WARN_ON(!s))
|
||||
goto out;
|
||||
|
||||
durability = max_t(unsigned, durability, s->nr_redundant);
|
||||
durability += s->nr_redundant;
|
||||
}
|
||||
out:
|
||||
return durability;
|
||||
|
|
Loading…
Reference in a new issue