diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-12-16 21:40:26 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-01-01 11:47:42 -0500 |
commit | defd9e39b59961ea0fd774020fb5c05dba199412 (patch) | |
tree | 25875b3bd5b7af3a67b159c9ca674ccc76967c0d /fs/bcachefs/move.c | |
parent | 559e6c23367f4c122834e7bf4eeac0a3ac382149 (diff) | |
download | linux-stable-defd9e39b59961ea0fd774020fb5c05dba199412.tar.gz linux-stable-defd9e39b59961ea0fd774020fb5c05dba199412.tar.bz2 linux-stable-defd9e39b59961ea0fd774020fb5c05dba199412.zip |
bcachefs: darray_for_each() now declares loop iter
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/move.c')
-rw-r--r-- | fs/bcachefs/move.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/bcachefs/move.c b/fs/bcachefs/move.c index b1b9566c7a61..106d95623cc8 100644 --- a/fs/bcachefs/move.c +++ b/fs/bcachefs/move.c @@ -400,12 +400,10 @@ struct bch_io_opts *bch2_move_get_io_opts(struct btree_trans *trans, if (ret) return ERR_PTR(ret); - if (extent_k.k->p.snapshot) { - struct snapshot_io_opts_entry *i; + if (extent_k.k->p.snapshot) darray_for_each(io_opts->d, i) if (bch2_snapshot_is_ancestor(c, extent_k.k->p.snapshot, i->snapshot)) return &i->io_opts; - } return &io_opts->fs_io_opts; } |