bcachefs: Fix ec_stripes_read()
authorKent Overstreet <kent.overstreet@gmail.com>
Wed, 9 Oct 2019 02:56:33 +0000 (22:56 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:29 +0000 (17:08 -0400)
commit9ec211b0ff4019407d029c49099f24dfedbc4db1
tree01849eeed2760a90610220bcc601d0f2d0bbcbf8
parent37954a275fce612f60406bc79f5bc0b07b4b6558
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>
fs/bcachefs/bcachefs_format.h
fs/bcachefs/ec.c