mirror of
https://github.com/torvalds/linux.git
synced 2026-06-05 04:56:13 +02: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
|
|
@ -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 New Issue
Block a user