mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-09 10:11:52 -04: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:
committed by
Kent Overstreet
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;
|
||||
|
||||
Reference in New Issue
Block a user