bcachefs: Fix infinite loop in propagate_key_to_snapshot_leaves()
authorKent Overstreet <kent.overstreet@linux.dev>
Mon, 23 Sep 2024 20:39:49 +0000 (16:39 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Mon, 23 Sep 2024 22:46:58 +0000 (18:46 -0400)
commit7eb4a319db65566005989121563ead344ca79140
tree99a05d4556edfd063f733281eb6d205e45e59664
parent6d12d7ace99ec74cb1f479bb851b5ed65b3bc105
bcachefs: Fix infinite loop in propagate_key_to_snapshot_leaves()

As we iterate we need to mark that we no longer need iterators -
otherwise we'll infinite loop via the "too many iters" check when
there's many snapshots.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/snapshot.c