bcachefs: Fix ec_stripes_read()

The bkey_s_c returned by btree_iter_(peek|next) points into the btree
iter type, so advancing the iterator and then using the one previously
returned is a bug...

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
Kent Overstreet 2019-10-08 22:56:33 -04:00 • committed by Kent Overstreet
commit 9ec211b0ff
2 changed files with 16 additions and 20 deletions